home *** CD-ROM | disk | FTP | other *** search
MacBinary | 2000-02-25 | 29.3 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Fri Feb 25 05:00:00 2000, modified Fri Feb 25 05:00:00 2000, creator 'CWIE', type ASCII, 29409 bytes "WEDrawing.c" , at 0x7361 286 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 57 45 44 72 61 77 | 69 6e 67 2e 63 00 00 00 |..WEDraw|ing.c...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 72 e1 00 | 00 01 1e b4 dc 03 20 b4 |.....r..|...... .|
|00000060| dc 03 20 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.. .....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 4a a6 00 00 |........|....J...|
|00000080| 2f 2a 0d 20 2a 09 57 45 | 44 72 61 77 69 6e 67 2e |/*. *.WE|Drawing.|
|00000090| 63 0d 20 2a 0d 20 2a 09 | 57 41 53 54 45 20 50 52 |c. *. *.|WASTE PR|
|000000a0| 4f 4a 45 43 54 0d 20 2a | 20 20 44 72 61 77 69 6e |OJECT. *| Drawin|
|000000b0| 67 20 72 6f 75 74 69 6e | 65 73 20 61 6e 64 20 6f |g routin|es and o|
|000000c0| 74 68 65 72 20 62 61 73 | 69 63 20 73 75 70 70 6f |ther bas|ic suppo|
|000000d0| 72 74 20 66 75 6e 63 74 | 69 6f 6e 73 0d 20 2a 0d |rt funct|ions. *.|
|000000e0| 20 2a 20 20 43 6f 70 79 | 72 69 67 68 74 20 28 63 | * Copy|right (c|
|000000f0| 29 20 31 39 39 33 2d 31 | 39 39 38 20 4d 61 72 63 |) 1993-1|998 Marc|
|00000100| 6f 20 50 69 6f 76 61 6e | 65 6c 6c 69 0d 20 2a 09 |o Piovan|elli. *.|
|00000110| 41 6c 6c 20 52 69 67 68 | 74 73 20 52 65 73 65 72 |All Righ|ts Reser|
|00000120| 76 65 64 0d 20 2a 0d 20 | 2a 20 20 43 20 70 6f 72 |ved. *. |* C por|
|00000130| 74 20 62 79 20 44 61 6e | 20 43 72 65 76 69 65 72 |t by Dan| Crevier|
|00000140| 0d 20 2a 0d 20 2a 2f 0d | 0d 2f 2a 0d 09 50 6f 72 |. *. */.|./*..Por|
|00000150| 74 69 6f 6e 73 20 63 6f | 70 79 72 69 67 68 74 20 |tions co|pyright |
|00000160| a9 20 31 39 39 38 2d 32 | 30 30 30 20 62 79 20 41 |. 1998-2|000 by A|
|00000170| 70 70 6c 65 20 43 6f 6d | 70 75 74 65 72 2c 20 49 |pple Com|puter, I|
|00000180| 6e 63 2e 20 41 6c 6c 20 | 72 69 67 68 74 73 20 72 |nc. All |rights r|
|00000190| 65 73 65 72 76 65 64 2e | 0d 0d 09 43 68 61 6e 67 |eserved.|...Chang|
|000001a0| 65 20 48 69 73 74 6f 72 | 79 3a 0d 09 09 30 31 2f |e Histor|y:...01/|
|000001b0| 32 36 2f 30 30 09 54 57 | 42 09 09 43 61 72 62 6f |26/00.TW|B..Carbo|
|000001c0| 6e 3a 20 72 65 67 69 6f | 6e 20 61 63 63 65 73 73 |n: regio|n access|
|000001d0| 6f 72 73 20 77 6f 72 6b | 20 6f 6e 20 61 6e 20 61 |ors work| on an a|
|000001e0| 6c 6c 6f 63 61 74 65 64 | 20 72 65 67 69 6f 6e 2e |llocated| region.|
|000001f0| 20 0d 09 09 30 31 2f 30 | 37 2f 30 30 09 54 57 42 | ...01/0|7/00.TWB|
|00000200| 09 09 43 61 72 62 6f 6e | 3a 20 70 6f 72 74 20 69 |..Carbon|: port i|
|00000210| 73 20 6f 70 61 71 75 65 | 2e 20 0d 09 09 31 32 2f |s opaque|. ...12/|
|00000220| 30 39 2f 39 39 09 54 57 | 42 09 09 43 6f 73 6d 65 |09/99.TW|B..Cosme|
|00000230| 74 69 63 2e 20 0d 09 09 | 31 31 2f 32 32 2f 39 39 |tic. ...|11/22/99|
|00000240| 09 54 57 42 09 09 41 6c | 6c 6f 77 20 62 6f 74 68 |.TWB..Al|low both|
|00000250| 20 73 74 79 6c 65 72 73 | 20 61 6e 64 20 6f 62 6a | stylers| and obj|
|00000260| 65 63 74 73 20 74 6f 20 | 64 72 61 77 2e 20 0d 09 |ects to |draw. ..|
|00000270| 09 31 31 2f 31 35 2f 39 | 39 09 54 57 42 09 09 41 |.11/15/9|9.TWB..A|
|00000280| 64 64 20 73 74 79 6c 65 | 72 73 2e 20 0d 09 09 31 |dd style|rs. ...1|
|00000290| 31 2f 31 30 2f 39 39 09 | 54 57 42 09 09 43 6c 65 |1/10/99.|TWB..Cle|
|000002a0| 61 6e 20 75 70 20 74 68 | 65 20 70 72 69 76 61 74 |an up th|e privat|
|000002b0| 65 20 69 6e 74 65 72 66 | 61 63 65 73 2e 20 0d 09 |e interf|aces. ..|
|000002c0| 09 31 30 2f 32 39 2f 39 | 38 09 54 57 42 09 09 5a |.10/29/9|8.TWB..Z|
|000002d0| 6f 6f 6d 20 73 75 70 70 | 6f 72 74 2e 20 0d 2a 2f |oom supp|ort. .*/|
|000002e0| 0d 0d 0d 23 69 6e 63 6c | 75 64 65 20 22 57 41 53 |...#incl|ude "WAS|
|000002f0| 54 45 49 6e 74 66 2e 68 | 22 0d 0d 23 69 66 20 4f |TEIntf.h|"..#if O|
|00000300| 50 41 51 55 45 5f 54 4f | 4f 4c 42 4f 58 5f 53 54 |PAQUE_TO|OLBOX_ST|
|00000310| 52 55 43 54 53 0d 23 64 | 65 66 69 6e 65 20 5f 57 |RUCTS.#d|efine _W|
|00000320| 45 47 65 74 50 6f 72 74 | 42 69 74 73 28 70 29 09 |EGetPort|Bits(p).|
|00000330| 28 28 42 69 74 4d 61 70 | 20 2a 29 20 2a 47 65 74 |((BitMap| *) *Get|
|00000340| 50 6f 72 74 50 69 78 4d | 61 70 28 70 29 29 0d 23 |PortPixM|ap(p)).#|
|00000350| 65 6c 73 65 0d 23 64 65 | 66 69 6e 65 20 5f 57 45 |else.#de|fine _WE|
|00000360| 47 65 74 50 6f 72 74 42 | 69 74 73 28 70 29 09 28 |GetPortB|its(p).(|
|00000370| 26 28 70 29 2d 3e 70 6f | 72 74 42 69 74 73 29 0d |&(p)->po|rtBits).|
|00000380| 23 65 6e 64 69 66 0d 0d | 23 69 66 20 57 41 53 54 |#endif..|#if WAST|
|00000390| 45 5f 4f 42 4a 45 43 54 | 53 0d 0d 70 61 73 63 61 |E_OBJECT|S..pasca|
|000003a0| 6c 20 4f 53 45 72 72 20 | 57 45 47 65 74 53 65 6c |l OSErr |WEGetSel|
|000003b0| 65 63 74 65 64 4f 62 6a | 65 63 74 28 57 45 4f 62 |ectedObj|ect(WEOb|
|000003c0| 6a 65 63 74 44 65 73 63 | 48 61 6e 64 6c 65 20 2a |jectDesc|Handle *|
|000003d0| 68 4f 62 6a 65 63 74 44 | 65 73 63 2c 20 57 45 48 |hObjectD|esc, WEH|
|000003e0| 61 6e 64 6c 65 20 68 57 | 45 29 0d 7b 0d 09 57 45 |andle hW|E).{..WE|
|000003f0| 50 74 72 20 70 57 45 20 | 3d 20 2a 68 57 45 3b 0d |Ptr pWE |= *hWE;.|
|00000400| 09 57 45 52 75 6e 49 6e | 66 6f 50 72 69 76 20 72 |.WERunIn|foPriv r|
|00000410| 75 6e 49 6e 66 6f 3b 0d | 0d 09 2f 2f 20 61 73 73 |unInfo;.|..// ass|
|00000420| 75 6d 65 20 63 75 72 72 | 65 6e 74 20 73 65 6c 65 |ume curr|ent sele|
|00000430| 63 74 69 6f 6e 20 69 73 | 20 6e 6f 74 20 61 6e 20 |ction is| not an |
|00000440| 65 6d 62 65 64 64 65 64 | 20 6f 62 6a 65 63 74 0d |embedded| object.|
|00000450| 09 2a 68 4f 62 6a 65 63 | 74 44 65 73 63 20 3d 20 |.*hObjec|tDesc = |
|00000460| 6e 69 6c 3b 0d 0d 09 2f | 2f 20 63 68 65 63 6b 20 |nil;.../|/ check |
|00000470| 73 65 6c 65 63 74 69 6f | 6e 20 72 61 6e 67 65 0d |selectio|n range.|
|00000480| 09 69 66 20 28 70 57 45 | 2d 3e 73 65 6c 45 6e 64 |.if (pWE|->selEnd|
|00000490| 20 2d 20 70 57 45 2d 3e | 73 65 6c 53 74 61 72 74 | - pWE->|selStart|
|000004a0| 20 3d 3d 20 31 29 0d 09 | 7b 0d 09 09 2f 2f 20 63 | == 1)..|{...// c|
|000004b0| 68 65 63 6b 20 72 75 6e | 20 69 6e 66 6f 0d 09 09 |heck run| info...|
|000004c0| 57 45 47 65 74 52 75 6e | 49 6e 66 6f 28 70 57 45 |WEGetRun|Info(pWE|
|000004d0| 2d 3e 73 65 6c 53 74 61 | 72 74 2c 20 28 57 45 52 |->selSta|rt, (WER|
|000004e0| 75 6e 49 6e 66 6f 20 2a | 29 26 72 75 6e 49 6e 66 |unInfo *|)&runInf|
|000004f0| 6f 2c 20 68 57 45 29 3b | 0d 09 09 69 66 20 28 28 |o, hWE);|...if ((|
|00000500| 2a 68 4f 62 6a 65 63 74 | 44 65 73 63 20 3d 20 72 |*hObject|Desc = r|
|00000510| 75 6e 49 6e 66 6f 2e 72 | 75 6e 41 74 74 72 73 2e |unInfo.r|unAttrs.|
|00000520| 72 75 6e 53 74 79 6c 65 | 2e 74 73 4f 62 6a 65 63 |runStyle|.tsObjec|
|00000530| 74 29 20 21 3d 20 6e 69 | 6c 29 0d 09 09 7b 0d 09 |t) != ni|l)...{..|
|00000540| 09 09 72 65 74 75 72 6e | 20 6e 6f 45 72 72 3b 0d |..return| noErr;.|
|00000550| 09 09 7d 0d 09 7d 0d 09 | 72 65 74 75 72 6e 20 77 |..}..}..|return w|
|00000560| 65 4f 62 6a 65 63 74 4e | 6f 74 46 6f 75 6e 64 45 |eObjectN|otFoundE|
|00000570| 72 72 3b 0d 7d 0d 0d 70 | 61 73 63 61 6c 20 53 49 |rr;.}..p|ascal SI|
|00000580| 6e 74 33 32 20 57 45 46 | 69 6e 64 4e 65 78 74 4f |nt32 WEF|indNextO|
|00000590| 62 6a 65 63 74 28 53 49 | 6e 74 33 32 20 6f 66 66 |bject(SI|nt32 off|
|000005a0| 73 65 74 2c 20 57 45 4f | 62 6a 65 63 74 44 65 73 |set, WEO|bjectDes|
|000005b0| 63 48 61 6e 64 6c 65 20 | 2a 68 4f 62 6a 65 63 74 |cHandle |*hObject|
|000005c0| 44 65 73 63 2c 20 57 45 | 48 61 6e 64 6c 65 20 68 |Desc, WE|Handle h|
|000005d0| 57 45 29 0d 7b 0d 09 57 | 45 50 74 72 20 70 57 45 |WE).{..W|EPtr pWE|
|000005e0| 20 3d 20 2a 68 57 45 3b | 0d 09 57 45 53 74 79 6c | = *hWE;|..WEStyl|
|000005f0| 65 54 61 62 6c 65 45 6e | 74 72 79 20 2a 70 53 74 |eTableEn|try *pSt|
|00000600| 79 6c 65 73 20 3d 20 2a | 70 57 45 2d 3e 68 53 74 |yles = *|pWE->hSt|
|00000610| 79 6c 65 73 3b 0d 09 57 | 45 4f 62 6a 65 63 74 44 |yles;..W|EObjectD|
|00000620| 65 73 63 48 61 6e 64 6c | 65 20 6f 62 6a 3b 0d 09 |escHandl|e obj;..|
|00000630| 57 45 52 75 6e 41 72 72 | 61 79 45 6e 74 72 79 20 |WERunArr|ayEntry |
|00000640| 2a 70 52 75 6e 3b 0d 0d | 09 2a 68 4f 62 6a 65 63 |*pRun;..|.*hObjec|
|00000650| 74 44 65 73 63 20 3d 20 | 6e 69 6c 3b 0d 0d 09 2f |tDesc = |nil;.../|
|00000660| 2f 20 64 6f 20 6e 6f 74 | 68 69 6e 67 20 69 66 20 |/ do not|hing if |
|00000670| 6f 66 66 73 65 74 20 69 | 73 20 61 6c 72 65 61 64 |offset i|s alread|
|00000680| 79 20 61 74 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |y at the| end of |
|00000690| 74 68 65 20 74 65 78 74 | 0d 09 69 66 20 28 6f 66 |the text|..if (of|
|000006a0| 66 73 65 74 20 3e 3d 20 | 70 57 45 2d 3e 74 65 78 |fset >= |pWE->tex|
|000006b0| 74 4c 65 6e 67 74 68 20 | 2d 20 31 29 0d 09 7b 0d |tLength |- 1)..{.|
|000006c0| 09 09 72 65 74 75 72 6e | 20 6b 49 6e 76 61 6c 69 |..return| kInvali|
|000006d0| 64 4f 66 66 73 65 74 3b | 0d 09 7d 0d 0d 09 2f 2f |dOffset;|..}...//|
|000006e0| 20 67 65 74 20 61 20 70 | 6f 69 6e 74 65 72 20 74 | get a p|ointer t|
|000006f0| 6f 20 74 68 65 20 72 75 | 6e 20 61 72 72 61 79 20 |o the ru|n array |
|00000700| 65 6e 74 72 79 20 69 6d | 6d 65 64 69 61 74 65 6c |entry im|mediatel|
|00000710| 79 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 6f 66 66 73 |y follow|ing offs|
|00000720| 65 74 0d 09 70 52 75 6e | 20 3d 20 2a 70 57 45 2d |et..pRun| = *pWE-|
|00000730| 3e 68 52 75 6e 73 20 2b | 20 57 45 4f 66 66 73 65 |>hRuns +| WEOffse|
|00000740| 74 54 6f 52 75 6e 28 6f | 66 66 73 65 74 20 2b 20 |tToRun(o|ffset + |
|00000750| 31 2c 20 68 57 45 29 3b | 0d 0d 09 2f 2f 20 70 65 |1, hWE);|...// pe|
|00000760| 72 66 6f 72 6d 20 61 20 | 6c 69 6e 65 61 72 20 73 |rform a |linear s|
|00000770| 63 61 6e 20 6f 66 20 74 | 68 65 20 72 75 6e 20 61 |can of t|he run a|
|00000780| 72 72 61 79 20 6c 6f 6f | 6b 69 6e 67 20 66 6f 72 |rray loo|king for|
|00000790| 20 61 20 72 75 6e 20 77 | 68 6f 73 65 0d 09 2f 2f | a run w|hose..//|
|000007a0| 20 63 6f 72 72 65 73 70 | 6f 6e 64 69 6e 67 20 73 | corresp|onding s|
|000007b0| 74 79 6c 65 20 74 61 62 | 6c 65 20 65 6e 74 72 79 |tyle tab|le entry|
|000007c0| 20 70 6f 69 6e 74 73 20 | 74 6f 20 61 6e 20 65 6d | points |to an em|
|000007d0| 62 65 64 64 65 64 20 6f | 62 6a 65 63 74 3b 0d 09 |bedded o|bject;..|
|000007e0| 2f 2f 20 74 68 65 20 73 | 65 61 72 63 68 20 77 69 |// the s|earch wi|
|000007f0| 6c 6c 20 73 74 6f 70 20 | 61 6e 79 77 61 79 20 62 |ll stop |anyway b|
|00000800| 65 63 61 75 73 65 20 74 | 68 65 20 6c 61 73 74 20 |ecause t|he last |
|00000810| 72 75 6e 20 61 72 72 61 | 79 20 65 6e 74 72 79 20 |run arra|y entry |
|00000820| 68 61 73 20 73 74 79 6c | 65 49 6e 64 65 78 20 3d |has styl|eIndex =|
|00000830| 20 2d 31 0d 09 77 68 69 | 6c 65 20 28 70 52 75 6e | -1..whi|le (pRun|
|00000840| 2d 3e 73 74 79 6c 65 49 | 6e 64 65 78 20 3e 3d 20 |->styleI|ndex >= |
|00000850| 30 29 0d 09 7b 0d 09 09 | 69 66 20 28 28 6f 62 6a |0)..{...|if ((obj|
|00000860| 20 3d 20 70 53 74 79 6c | 65 73 5b 70 52 75 6e 2d | = pStyl|es[pRun-|
|00000870| 3e 73 74 79 6c 65 49 6e | 64 65 78 5d 2e 69 6e 66 |>styleIn|dex].inf|
|00000880| 6f 2e 72 75 6e 53 74 79 | 6c 65 2e 74 73 4f 62 6a |o.runSty|le.tsObj|
|00000890| 65 63 74 29 20 21 3d 20 | 6e 69 6c 29 0d 09 09 7b |ect) != |nil)...{|
|000008a0| 0d 09 09 09 2a 68 4f 62 | 6a 65 63 74 44 65 73 63 |....*hOb|jectDesc|
|000008b0| 20 3d 20 6f 62 6a 3b 0d | 09 09 09 72 65 74 75 72 | = obj;.|...retur|
|000008c0| 6e 20 70 52 75 6e 2d 3e | 72 75 6e 53 74 61 72 74 |n pRun->|runStart|
|000008d0| 3b 0d 09 09 7d 0d 09 09 | 70 52 75 6e 2b 2b 3b 0d |;...}...|pRun++;.|
|000008e0| 09 7d 0d 0d 09 72 65 74 | 75 72 6e 20 6b 49 6e 76 |.}...ret|urn kInv|
|000008f0| 61 6c 69 64 4f 66 66 73 | 65 74 3b 0d 0d 7d 0d 0d |alidOffs|et;..}..|
|00000900| 23 65 6e 64 69 66 20 20 | 2f 2f 20 57 41 53 54 45 |#endif |// WASTE|
|00000910| 5f 4f 42 4a 45 43 54 53 | 0d 0d 70 61 73 63 61 6c |_OBJECTS|..pascal|
|00000920| 20 76 6f 69 64 20 5f 57 | 45 43 6f 6e 74 69 6e 75 | void _W|EContinu|
|00000930| 6f 75 73 53 74 79 6c 65 | 52 61 6e 67 65 28 53 49 |ousStyle|Range(SI|
|00000940| 6e 74 33 32 20 72 61 6e | 67 65 53 74 61 72 74 2c |nt32 ran|geStart,|
|00000950| 20 53 49 6e 74 33 32 20 | 72 61 6e 67 65 45 6e 64 | SInt32 |rangeEnd|
|00000960| 2c 20 57 45 53 74 79 6c | 65 4d 6f 64 65 20 2a 6d |, WEStyl|eMode *m|
|00000970| 6f 64 65 2c 20 57 45 54 | 65 78 74 53 74 79 6c 65 |ode, WET|extStyle|
|00000980| 20 2a 74 73 2c 20 57 45 | 48 61 6e 64 6c 65 20 68 | *ts, WE|Handle h|
|00000990| 57 45 29 0d 7b 0d 09 2f | 2f 20 66 69 6e 64 20 6f |WE).{../|/ find o|
|000009a0| 75 74 20 77 68 69 63 68 | 20 73 74 79 6c 65 20 61 |ut which| style a|
|000009b0| 74 74 72 69 62 75 74 65 | 73 20 61 72 65 20 63 6f |ttribute|s are co|
|000009c0| 6e 74 69 6e 6f 75 73 20 | 6f 76 65 72 20 74 68 65 |ntinous |over the|
|000009d0| 20 73 70 65 63 69 66 69 | 65 64 20 74 65 78 74 20 | specifi|ed text |
|000009e0| 72 61 6e 67 65 0d 09 2f | 2f 20 6f 6e 20 65 6e 74 |range../|/ on ent|
|000009f0| 72 79 2c 20 2a 6d 6f 64 | 65 20 73 70 65 63 69 66 |ry, *mod|e specif|
|00000a00| 69 65 73 20 77 68 69 63 | 68 20 61 74 74 72 69 62 |ies whic|h attrib|
|00000a10| 75 74 65 73 20 61 72 65 | 20 74 6f 20 62 65 20 63 |utes are| to be c|
|00000a20| 68 65 63 6b 65 64 0d 09 | 2f 2f 20 6f 6e 20 65 78 |hecked..|// on ex|
|00000a30| 69 74 2c 20 2a 6d 6f 64 | 65 20 73 70 65 63 69 66 |it, *mod|e specif|
|00000a40| 69 65 73 20 74 68 65 20 | 63 6f 6e 74 69 6e 75 6f |ies the |continuo|
|00000a50| 75 73 20 61 74 74 72 69 | 62 75 74 65 73 2c 20 61 |us attri|butes, a|
|00000a60| 6c 73 6f 20 63 6f 70 69 | 65 64 20 74 6f 20 74 73 |lso copi|ed to ts|
|00000a70| 0d 0d 09 53 49 6e 74 33 | 32 20 72 75 6e 49 6e 64 |...SInt3|2 runInd|
|00000a80| 65 78 3b 0d 09 57 45 53 | 74 79 6c 65 4d 6f 64 65 |ex;..WES|tyleMode|
|00000a90| 20 6f 75 74 4d 6f 64 65 | 3b 0d 09 57 45 52 75 6e | outMode|;..WERun|
|00000aa0| 49 6e 66 6f 50 72 69 76 | 20 72 75 6e 49 6e 66 6f |InfoPriv| runInfo|
|00000ab0| 3b 0d 0d 09 6f 75 74 4d | 6f 64 65 20 3d 20 2a 6d |;...outM|ode = *m|
|00000ac0| 6f 64 65 3b 0d 0d 09 2f | 2f 20 67 65 74 20 73 74 |ode;.../|/ get st|
|00000ad0| 79 6c 65 20 69 6e 66 6f | 20 61 74 20 74 68 65 20 |yle info| at the |
|00000ae0| 62 65 67 69 6e 6e 69 6e | 67 20 6f 66 20 74 68 65 |beginnin|g of the|
|00000af0| 20 73 70 65 63 69 66 69 | 65 64 20 72 61 6e 67 65 | specifi|ed range|
|00000b00| 0d 09 72 75 6e 49 6e 64 | 65 78 20 3d 20 57 45 4f |..runInd|ex = WEO|
|00000b10| 66 66 73 65 74 54 6f 52 | 75 6e 28 72 61 6e 67 65 |ffsetToR|un(range|
|00000b20| 53 74 61 72 74 2c 20 68 | 57 45 29 3b 0d 09 5f 57 |Start, h|WE);.._W|
|00000b30| 45 47 65 74 49 6e 64 53 | 74 79 6c 65 28 72 75 6e |EGetIndS|tyle(run|
|00000b40| 49 6e 64 65 78 2c 20 26 | 72 75 6e 49 6e 66 6f 2c |Index, &|runInfo,|
|00000b50| 20 68 57 45 29 3b 0d 0d | 09 2f 2f 20 63 6f 70 79 | hWE);..|.// copy|
|00000b60| 20 74 68 65 20 73 70 65 | 63 69 66 69 65 64 20 66 | the spe|cified f|
|00000b70| 69 65 6c 64 73 20 74 6f | 20 74 73 0d 09 5f 57 45 |ields to| ts.._WE|
|00000b80| 43 6f 70 79 53 74 79 6c | 65 28 26 72 75 6e 49 6e |CopyStyl|e(&runIn|
|00000b90| 66 6f 2e 72 75 6e 41 74 | 74 72 73 2e 72 75 6e 53 |fo.runAt|trs.runS|
|00000ba0| 74 79 6c 65 2c 20 74 73 | 2c 20 6e 6f 72 6d 61 6c |tyle, ts|, normal|
|00000bb0| 2c 20 28 6f 75 74 4d 6f | 64 65 20 26 20 77 65 44 |, (outMo|de & weD|
|00000bc0| 6f 41 6c 6c 29 20 7c 20 | 77 65 44 6f 52 65 70 6c |oAll) | |weDoRepl|
|00000bd0| 61 63 65 46 61 63 65 29 | 3b 0d 0d 09 2f 2f 20 6c |aceFace)|;...// l|
|00000be0| 6f 6f 70 20 74 68 72 6f | 75 67 68 20 73 74 79 6c |oop thro|ugh styl|
|00000bf0| 65 20 72 75 6e 73 20 61 | 63 72 6f 73 73 20 74 68 |e runs a|cross th|
|00000c00| 65 20 63 75 72 72 65 6e | 74 20 73 65 6c 65 63 74 |e curren|t select|
|00000c10| 69 6f 6e 20 72 61 6e 67 | 65 0d 09 2f 2f 20 69 66 |ion rang|e..// if|
|00000c20| 20 77 65 20 64 65 74 65 | 72 6d 69 6e 65 20 74 68 | we dete|rmine th|
|00000c30| 61 74 20 61 6c 6c 20 73 | 70 65 63 69 66 69 65 64 |at all s|pecified|
|00000c40| 20 61 74 74 72 69 62 75 | 74 65 73 20 61 72 65 20 | attribu|tes are |
|00000c50| 64 69 73 63 6f 6e 74 69 | 6e 75 6f 75 73 2c 20 77 |disconti|nuous, w|
|00000c60| 65 20 65 78 69 74 20 70 | 72 65 6d 61 74 75 72 65 |e exit p|remature|
|00000c70| 6c 79 0d 09 64 6f 0d 09 | 7b 0d 09 09 5f 57 45 47 |ly..do..|{..._WEG|
|00000c80| 65 74 49 6e 64 53 74 79 | 6c 65 28 72 75 6e 49 6e |etIndSty|le(runIn|
|00000c90| 64 65 78 2c 20 26 72 75 | 6e 49 6e 66 6f 2c 20 68 |dex, &ru|nInfo, h|
|00000ca0| 57 45 29 3b 0d 0d 09 09 | 2f 2f 20 64 65 74 65 72 |WE);....|// deter|
|00000cb0| 6d 69 6e 65 20 77 68 69 | 63 68 20 61 74 74 72 69 |mine whi|ch attri|
|00000cc0| 62 75 74 65 73 20 68 61 | 76 65 20 63 68 61 6e 67 |butes ha|ve chang|
|00000cd0| 65 64 2c 20 69 66 20 61 | 6e 79 0d 09 09 69 66 20 |ed, if a|ny...if |
|00000ce0| 28 6f 75 74 4d 6f 64 65 | 20 26 20 77 65 44 6f 46 |(outMode| & weDoF|
|00000cf0| 6f 6e 74 29 0d 09 09 7b | 0d 09 09 09 69 66 20 28 |ont)...{|....if (|
|00000d00| 72 75 6e 49 6e 66 6f 2e | 72 75 6e 41 74 74 72 73 |runInfo.|runAttrs|
|00000d10| 2e 72 75 6e 53 74 79 6c | 65 2e 74 73 46 6f 6e 74 |.runStyl|e.tsFont|
|00000d20| 20 21 3d 20 74 73 2d 3e | 74 73 46 6f 6e 74 29 0d | != ts->|tsFont).|
|00000d30| 09 09 09 7b 0d 09 09 09 | 09 6f 75 74 4d 6f 64 65 |...{....|.outMode|
|00000d40| 20 26 3d 20 28 7e 77 65 | 44 6f 46 6f 6e 74 29 3b | &= (~we|DoFont);|
|00000d50| 0d 09 09 09 7d 0d 09 09 | 7d 0d 09 09 69 66 20 28 |....}...|}...if (|
|00000d60| 6f 75 74 4d 6f 64 65 20 | 26 20 77 65 44 6f 46 61 |outMode |& weDoFa|
|00000d70| 63 65 29 0d 09 09 7b 0d | 09 09 09 69 66 20 28 72 |ce)...{.|...if (r|
|00000d80| 75 6e 49 6e 66 6f 2e 72 | 75 6e 41 74 74 72 73 2e |unInfo.r|unAttrs.|
|00000d90| 72 75 6e 53 74 79 6c 65 | 2e 74 73 46 61 63 65 20 |runStyle|.tsFace |
|00000da0| 21 3d 20 74 73 2d 3e 74 | 73 46 61 63 65 29 0d 09 |!= ts->t|sFace)..|
|00000db0| 09 09 7b 0d 09 09 09 09 | 74 73 2d 3e 74 73 46 61 |..{.....|ts->tsFa|
|00000dc0| 63 65 20 26 3d 20 72 75 | 6e 49 6e 66 6f 2e 72 75 |ce &= ru|nInfo.ru|
|00000dd0| 6e 41 74 74 72 73 2e 72 | 75 6e 53 74 79 6c 65 2e |nAttrs.r|unStyle.|
|00000de0| 74 73 46 61 63 65 3b 0d | 09 09 09 09 69 66 20 28 |tsFace;.|....if (|
|00000df0| 74 73 2d 3e 74 73 46 61 | 63 65 20 3d 3d 20 30 29 |ts->tsFa|ce == 0)|
|00000e00| 0d 09 09 09 09 7b 0d 09 | 09 09 09 09 6f 75 74 4d |.....{..|....outM|
|00000e10| 6f 64 65 20 26 3d 20 28 | 7e 77 65 44 6f 46 61 63 |ode &= (|~weDoFac|
|00000e20| 65 29 3b 0d 09 09 09 09 | 7d 0d 09 09 09 7d 0d 09 |e);.....|}....}..|
|00000e30| 09 7d 0d 09 09 69 66 20 | 28 6f 75 74 4d 6f 64 65 |.}...if |(outMode|
|00000e40| 20 26 20 77 65 44 6f 46 | 61 63 65 4d 61 73 6b 29 | & weDoF|aceMask)|
|00000e50| 0d 09 09 7b 0d 09 09 09 | 74 73 2d 3e 74 73 46 6c |...{....|ts->tsFl|
|00000e60| 61 67 73 20 7c 3d 20 72 | 75 6e 49 6e 66 6f 2e 72 |ags |= r|unInfo.r|
|00000e70| 75 6e 41 74 74 72 73 2e | 72 75 6e 53 74 79 6c 65 |unAttrs.|runStyle|
|00000e80| 2e 74 73 46 61 63 65 3b | 0d 09 09 7d 0d 09 09 69 |.tsFace;|...}...i|
|00000e90| 66 20 28 6f 75 74 4d 6f | 64 65 20 26 20 77 65 44 |f (outMo|de & weD|
|00000ea0| 6f 53 69 7a 65 29 0d 09 | 09 7b 0d 09 09 09 69 66 |oSize)..|.{....if|
|00000eb0| 20 28 72 75 6e 49 6e 66 | 6f 2e 72 75 6e 41 74 74 | (runInf|o.runAtt|
|00000ec0| 72 73 2e 72 75 6e 53 74 | 79 6c 65 2e 74 73 53 69 |rs.runSt|yle.tsSi|
|00000ed0| 7a 65 20 21 3d 20 74 73 | 2d 3e 74 73 53 69 7a 65 |ze != ts|->tsSize|
|00000ee0| 29 0d 09 09 09 7b 0d 09 | 09 09 09 6f 75 74 4d 6f |)....{..|...outMo|
|00000ef0| 64 65 20 26 3d 20 28 7e | 77 65 44 6f 53 69 7a 65 |de &= (~|weDoSize|
|00000f00| 29 3b 0d 09 09 09 7d 0d | 09 09 7d 0d 09 09 69 66 |);....}.|..}...if|
|00000f10| 20 28 6f 75 74 4d 6f 64 | 65 20 26 20 77 65 44 6f | (outMod|e & weDo|
|00000f20| 43 6f 6c 6f 72 29 0d 09 | 09 7b 0d 09 09 09 69 66 |Color)..|.{....if|
|00000f30| 20 28 21 5f 57 45 42 6c | 6f 63 6b 43 6d 70 28 26 | (!_WEBl|ockCmp(&|
|00000f40| 72 75 6e 49 6e 66 6f 2e | 72 75 6e 41 74 74 72 73 |runInfo.|runAttrs|
|00000f50| 2e 72 75 6e 53 74 79 6c | 65 2e 74 73 43 6f 6c 6f |.runStyl|e.tsColo|
|00000f60| 72 2c 20 26 74 73 2d 3e | 74 73 43 6f 6c 6f 72 2c |r, &ts->|tsColor,|
|00000f70| 20 73 69 7a 65 6f 66 28 | 52 47 42 43 6f 6c 6f 72 | sizeof(|RGBColor|
|00000f80| 29 29 29 0d 09 09 09 7b | 0d 09 09 09 09 6f 75 74 |)))....{|.....out|
|00000f90| 4d 6f 64 65 20 26 3d 20 | 28 7e 77 65 44 6f 43 6f |Mode &= |(~weDoCo|
|00000fa0| 6c 6f 72 29 3b 0d 09 09 | 09 7d 0d 09 09 7d 0d 0d |lor);...|.}...}..|
|00000fb0| 09 09 72 75 6e 49 6e 64 | 65 78 2b 2b 3b 0d 09 7d |..runInd|ex++;..}|
|00000fc0| 20 77 68 69 6c 65 20 28 | 28 6f 75 74 4d 6f 64 65 | while (|(outMode|
|00000fd0| 20 21 3d 20 30 29 20 26 | 26 20 28 72 75 6e 49 6e | != 0) &|& (runIn|
|00000fe0| 66 6f 2e 72 75 6e 45 6e | 64 20 3c 20 72 61 6e 67 |fo.runEn|d < rang|
|00000ff0| 65 45 6e 64 29 29 3b 0d | 0d 09 2a 6d 6f 64 65 20 |eEnd));.|..*mode |
|00001000| 3d 20 6f 75 74 4d 6f 64 | 65 3b 0d 7d 0d 0d 70 61 |= outMod|e;.}..pa|
|00001010| 73 63 61 6c 20 76 6f 69 | 64 20 5f 57 45 53 79 6e |scal voi|d _WESyn|
|00001020| 63 68 4e 75 6c 6c 53 74 | 79 6c 65 28 57 45 48 61 |chNullSt|yle(WEHa|
|00001030| 6e 64 6c 65 20 68 57 45 | 29 0d 7b 0d 09 2f 2f 20 |ndle hWE|).{..// |
|00001040| 54 68 69 73 20 72 6f 75 | 74 69 6e 65 20 66 69 6c |This rou|tine fil|
|00001050| 6c 73 20 74 68 65 20 6e | 75 6c 6c 53 74 79 6c 65 |ls the n|ullStyle|
|00001060| 20 66 69 65 6c 64 20 6f | 66 20 74 68 65 20 57 45 | field o|f the WE|
|00001070| 20 72 65 63 6f 72 64 20 | 77 69 74 68 20 76 61 6c | record |with val|
|00001080| 69 64 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 0d 09 |id infor|mation..|
|00001090| 2f 2f 20 61 6e 64 20 6d | 61 6b 65 73 20 73 75 72 |// and m|akes sur|
|000010a0| 65 20 74 68 61 74 20 74 | 68 65 20 6e 75 6c 6c 20 |e that t|he null |
|000010b0| 73 74 79 6c 65 20 66 6f | 6e 74 20 62 65 6c 6f 6e |style fo|nt belon|
|000010c0| 67 73 20 74 6f 20 74 68 | 65 20 6b 65 79 62 6f 61 |gs to th|e keyboa|
|000010d0| 72 64 20 73 63 72 69 70 | 74 2e 0d 0d 09 57 45 50 |rd scrip|t....WEP|
|000010e0| 74 72 20 70 57 45 20 3d | 20 2a 68 57 45 3b 09 2f |tr pWE =| *hWE;./|
|000010f0| 2f 20 61 73 73 75 6d 65 | 20 57 45 20 72 65 63 6f |/ assume| WE reco|
|00001100| 72 64 20 69 73 20 61 6c | 72 65 61 64 79 20 6c 6f |rd is al|ready lo|
|00001110| 63 6b 65 64 0d 09 53 49 | 6e 74 33 32 20 72 75 6e |cked..SI|nt32 run|
|00001120| 49 6e 64 65 78 3b 0d 09 | 57 45 52 75 6e 49 6e 66 |Index;..|WERunInf|
|00001130| 6f 50 72 69 76 20 72 75 | 6e 49 6e 66 6f 3b 0d 23 |oPriv ru|nInfo;.#|
|00001140| 69 66 20 21 57 41 53 54 | 45 5f 4e 4f 5f 53 59 4e |if !WAST|E_NO_SYN|
|00001150| 43 48 0d 09 53 63 72 69 | 70 74 43 6f 64 65 20 6b |CH..Scri|ptCode k|
|00001160| 65 79 62 6f 61 72 64 53 | 63 72 69 70 74 3b 0d 09 |eyboardS|cript;..|
|00001170| 53 49 6e 74 31 36 20 66 | 6f 6e 74 49 44 3b 0d 23 |SInt16 f|ontID;.#|
|00001180| 65 6e 64 69 66 0d 0d 09 | 2f 2f 20 66 69 6e 64 20 |endif...|// find |
|00001190| 74 68 65 20 72 75 6e 20 | 69 6e 64 65 78 20 6f 66 |the run |index of|
|000011a0| 20 74 68 65 20 73 74 79 | 6c 65 20 72 75 6e 20 70 | the sty|le run p|
|000011b0| 72 65 63 65 64 69 6e 67 | 20 74 68 65 20 69 6e 73 |receding| the ins|
|000011c0| 65 72 74 69 6f 6e 20 70 | 6f 69 6e 74 0d 09 72 75 |ertion p|oint..ru|
|000011d0| 6e 49 6e 64 65 78 20 3d | 20 57 45 4f 66 66 73 65 |nIndex =| WEOffse|
|000011e0| 74 54 6f 52 75 6e 28 70 | 57 45 2d 3e 73 65 6c 53 |tToRun(p|WE->selS|
|000011f0| 74 61 72 74 20 2d 20 31 | 2c 20 68 57 45 29 3b 0d |tart - 1|, hWE);.|
|00001200| 0d 09 2f 2f 20 69 66 20 | 74 68 65 20 6e 75 6c 6c |..// if |the null|
|00001210| 53 74 79 6c 65 20 72 65 | 63 6f 72 64 20 69 73 20 |Style re|cord is |
|00001220| 6d 61 72 6b 65 64 20 61 | 73 20 69 6e 76 61 6c 69 |marked a|s invali|
|00001230| 64 2c 20 66 69 6c 6c 20 | 69 74 20 77 69 74 68 20 |d, fill |it with |
|00001240| 74 68 65 20 73 74 79 6c | 65 20 61 74 74 72 69 62 |the styl|e attrib|
|00001250| 75 74 65 73 0d 09 2f 2f | 20 61 73 73 6f 63 69 61 |utes..//| associa|
|00001260| 74 65 64 20 77 69 74 68 | 20 74 68 65 20 63 68 61 |ted with| the cha|
|00001270| 72 61 63 74 65 72 20 70 | 72 65 63 65 64 69 6e 67 |racter p|receding|
|00001280| 20 74 68 65 20 69 6e 73 | 65 72 74 69 6f 6e 20 70 | the ins|ertion p|
|00001290| 6f 69 6e 74 2c 20 61 6e | 64 20 6d 61 72 6b 20 69 |oint, an|d mark i|
|000012a0| 74 20 61 73 20 76 61 6c | 69 64 0d 09 69 66 20 28 |t as val|id..if (|
|000012b0| 21 42 54 53 54 28 70 57 | 45 2d 3e 66 6c 61 67 73 |!BTST(pW|E->flags|
|000012c0| 2c 20 77 65 46 55 73 65 | 4e 75 6c 6c 53 74 79 6c |, weFUse|NullStyl|
|000012d0| 65 29 29 0d 09 7b 0d 09 | 09 5f 57 45 47 65 74 49 |e))..{..|._WEGetI|
|000012e0| 6e 64 53 74 79 6c 65 28 | 72 75 6e 49 6e 64 65 78 |ndStyle(|runIndex|
|000012f0| 2c 20 26 72 75 6e 49 6e | 66 6f 2c 20 68 57 45 29 |, &runIn|fo, hWE)|
|00001300| 3b 0d 09 09 70 57 45 2d | 3e 6e 75 6c 6c 53 74 79 |;...pWE-|>nullSty|
|00001310| 6c 65 20 3d 20 72 75 6e | 49 6e 66 6f 2e 72 75 6e |le = run|Info.run|
|00001320| 41 74 74 72 73 3b 0d 09 | 09 42 53 45 54 28 70 57 |Attrs;..|.BSET(pW|
|00001330| 45 2d 3e 66 6c 61 67 73 | 2c 20 77 65 46 55 73 65 |E->flags|, weFUse|
|00001340| 4e 75 6c 6c 53 74 79 6c | 65 29 3b 0d 09 7d 0d 0d |NullStyl|e);..}..|
|00001350| 23 69 66 20 21 57 41 53 | 54 45 5f 4e 4f 5f 53 59 |#if !WAS|TE_NO_SY|
|00001360| 4e 43 48 0d 09 2f 2f 20 | 69 66 20 6f 6e 6c 79 20 |NCH..// |if only |
|00001370| 74 68 65 20 52 6f 6d 61 | 6e 20 73 63 72 69 70 74 |the Roma|n script|
|00001380| 20 69 73 20 69 6e 73 74 | 61 6c 6c 65 64 2c 20 77 | is inst|alled, w|
|00001390| 65 27 72 65 20 66 69 6e | 69 73 68 65 64 0d 09 69 |e're fin|ished..i|
|000013a0| 66 20 28 21 42 54 53 54 | 28 70 57 45 2d 3e 66 6c |f (!BTST|(pWE->fl|
|000013b0| 61 67 73 2c 20 77 65 46 | 4e 6f 6e 52 6f 6d 61 6e |ags, weF|NonRoman|
|000013c0| 29 29 0d 09 7b 0d 09 09 | 72 65 74 75 72 6e 3b 0d |))..{...|return;.|
|000013d0| 09 7d 0d 0d 09 2f 2f 20 | 2a 2a 2a 20 46 4f 4e 54 |.}...// |*** FONT|
|000013e0| 20 2f 20 4b 45 59 42 4f | 41 52 44 20 53 59 4e 43 | / KEYBO|ARD SYNC|
|000013f0| 48 52 4f 4e 49 5a 41 54 | 49 4f 4e 20 2a 2a 2a 0d |HRONIZAT|ION ***.|
|00001400| 09 2f 2f 20 67 65 74 20 | 74 68 65 20 6b 65 79 62 |.// get |the keyb|
|00001410| 6f 61 72 64 20 73 63 72 | 69 70 74 0d 09 6b 65 79 |oard scr|ipt..key|
|00001420| 62 6f 61 72 64 53 63 72 | 69 70 74 20 3d 20 47 65 |boardScr|ipt = Ge|
|00001430| 74 53 63 72 69 70 74 4d | 61 6e 61 67 65 72 56 61 |tScriptM|anagerVa|
|00001440| 72 69 61 62 6c 65 28 73 | 6d 4b 65 79 53 63 72 69 |riable(s|mKeyScri|
|00001450| 70 74 29 3b 0d 0d 09 2f | 2f 20 66 69 6e 64 20 6f |pt);.../|/ find o|
|00001460| 75 74 20 77 68 61 74 20 | 66 6f 6e 74 20 77 69 6c |ut what |font wil|
|00001470| 6c 20 62 65 20 75 73 65 | 64 20 66 6f 72 20 74 68 |l be use|d for th|
|00001480| 65 20 6e 65 78 74 20 63 | 68 61 72 61 63 74 65 72 |e next c|haracter|
|00001490| 20 74 79 70 65 64 0d 09 | 66 6f 6e 74 49 44 20 3d | typed..|fontID =|
|000014a0| 20 70 57 45 2d 3e 6e 75 | 6c 6c 53 74 79 6c 65 2e | pWE->nu|llStyle.|
|000014b0| 72 75 6e 53 74 79 6c 65 | 2e 74 73 46 6f 6e 74 3b |runStyle|.tsFont;|
|000014c0| 0d 0d 09 2f 2f 20 64 6f | 20 6e 6f 74 68 69 6e 67 |...// do| nothing|
|000014d0| 20 69 66 20 74 68 65 20 | 66 6f 6e 74 20 73 63 72 | if the |font scr|
|000014e0| 69 70 74 20 69 73 20 74 | 68 65 20 73 61 6d 65 20 |ipt is t|he same |
|000014f0| 61 73 20 74 68 65 20 6b | 65 79 62 6f 61 72 64 20 |as the k|eyboard |
|00001500| 73 63 72 69 70 74 0d 09 | 69 66 20 28 46 6f 6e 74 |script..|if (Font|
|00001510| 54 6f 53 63 72 69 70 74 | 28 66 6f 6e 74 49 44 29 |ToScript|(fontID)|
|00001520| 20 3d 3d 20 6b 65 79 62 | 6f 61 72 64 53 63 72 69 | == keyb|oardScri|
|00001530| 70 74 29 0d 09 7b 0d 09 | 09 72 65 74 75 72 6e 3b |pt)..{..|.return;|
|00001540| 0d 09 7d 0d 0d 09 2f 2f | 20 73 63 61 6e 20 73 74 |..}...//| scan st|
|00001550| 79 6c 65 20 72 75 6e 73 | 20 73 74 61 72 74 69 6e |yle runs| startin|
|00001560| 67 20 66 72 6f 6d 20 74 | 68 65 20 69 6e 73 65 72 |g from t|he inser|
|00001570| 74 69 6f 6e 20 70 6f 69 | 6e 74 20 62 61 63 6b 77 |tion poi|nt backw|
|00001580| 61 72 64 73 2c 0d 09 2f | 2f 20 6c 6f 6f 6b 69 6e |ards,../|/ lookin|
|00001590| 67 20 66 6f 72 20 74 68 | 65 20 66 69 72 73 74 20 |g for th|e first |
|000015a0| 66 6f 6e 74 20 62 65 6c | 6f 6e 67 69 6e 67 20 74 |font bel|onging t|
|000015b0| 6f 20 74 68 65 20 6b 65 | 79 62 6f 61 72 64 20 73 |o the ke|yboard s|
|000015c0| 63 72 69 70 74 0d 09 64 | 6f 0d 09 7b 0d 09 09 5f |cript..d|o..{..._|
|000015d0| 57 45 47 65 74 49 6e 64 | 53 74 79 6c 65 28 72 75 |WEGetInd|Style(ru|
|000015e0| 6e 49 6e 64 65 78 2c 20 | 26 72 75 6e 49 6e 66 6f |nIndex, |&runInfo|
|000015f0| 2c 20 68 57 45 29 3b 0d | 09 09 66 6f 6e 74 49 44 |, hWE);.|..fontID|
|00001600| 20 3d 20 72 75 6e 49 6e | 66 6f 2e 72 75 6e 41 74 | = runIn|fo.runAt|
|00001610| 74 72 73 2e 72 75 6e 53 | 74 79 6c 65 2e 74 73 46 |trs.runS|tyle.tsF|
|00001620| 6f 6e 74 3b 0d 09 09 69 | 66 20 28 46 6f 6e 74 54 |ont;...i|f (FontT|
|00001630| 6f 53 63 72 69 70 74 28 | 66 6f 6e 74 49 44 29 20 |oScript(|fontID) |
|00001640| 3d 3d 20 6b 65 79 62 6f | 61 72 64 53 63 72 69 70 |== keybo|ardScrip|
|00001650| 74 29 0d 09 09 7b 0d 09 | 09 09 62 72 65 61 6b 3b |t)...{..|..break;|
|00001660| 0d 09 09 7d 0d 09 09 72 | 75 6e 49 6e 64 65 78 2d |...}...r|unIndex-|
|00001670| 2d 3b 0d 09 7d 20 77 68 | 69 6c 65 20 28 72 75 6e |-;..} wh|ile (run|
|00001680| 49 6e 64 65 78 3e 3d 30 | 29 3b 0d 0d 09 2f 2f 20 |Index>=0|);...// |
|00001690| 69 66 20 6e 6f 20 66 6f | 6e 74 20 77 61 73 20 65 |if no fo|nt was e|
|000016a0| 76 65 72 20 75 73 65 64 | 20 66 6f 72 20 74 68 65 |ver used| for the|
|000016b0| 20 6b 65 79 62 6f 61 72 | 64 20 73 63 72 69 70 74 | keyboar|d script|
|000016c0| 2c 20 64 65 66 61 75 6c | 74 20 74 6f 20 74 68 65 |, defaul|t to the|
|000016d0| 0d 09 2f 2f 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |..// app|lication|
|000016e0| 20 66 6f 6e 74 20 66 6f | 72 20 74 68 65 20 73 63 | font fo|r the sc|
|000016f0| 72 69 70 74 0d 09 69 66 | 20 28 72 75 6e 49 6e 64 |ript..if| (runInd|
|00001700| 65 78 20 3c 20 30 29 0d | 09 7b 0d 09 09 66 6f 6e |ex < 0).|.{...fon|
|00001710| 74 49 44 20 3d 20 47 65 | 74 53 63 72 69 70 74 56 |tID = Ge|tScriptV|
|00001720| 61 72 69 61 62 6c 65 28 | 6b 65 79 62 6f 61 72 64 |ariable(|keyboard|
|00001730| 53 63 72 69 70 74 2c 20 | 73 6d 53 63 72 69 70 74 |Script, |smScript|
|00001740| 41 70 70 46 6f 6e 64 29 | 3b 0d 09 7d 0d 0d 09 2f |AppFond)|;..}.../|
|00001750| 2f 20 63 68 61 6e 67 65 | 20 74 68 65 20 66 6f 6e |/ change| the fon|
|00001760| 74 20 69 6e 20 74 68 65 | 20 6e 75 6c 6c 20 73 74 |t in the| null st|
|00001770| 79 6c 65 20 72 65 63 6f | 72 64 0d 09 70 57 45 2d |yle reco|rd..pWE-|
|00001780| 3e 6e 75 6c 6c 53 74 79 | 6c 65 2e 72 75 6e 53 74 |>nullSty|le.runSt|
|00001790| 79 6c 65 2e 74 73 46 6f | 6e 74 20 3d 20 66 6f 6e |yle.tsFo|nt = fon|
|000017a0| 74 49 44 3b 0d 23 65 6e | 64 69 66 0d 7d 0d 0d 70 |tID;.#en|dif.}..p|
|000017b0| 61 73 63 61 6c 20 42 6f | 6f 6c 65 61 6e 20 57 45 |ascal Bo|olean WE|
|000017c0| 43 6f 6e 74 69 6e 75 6f | 75 73 53 74 79 6c 65 28 |Continuo|usStyle(|
|000017d0| 57 45 53 74 79 6c 65 4d | 6f 64 65 20 2a 6d 6f 64 |WEStyleM|ode *mod|
|000017e0| 65 2c 20 54 65 78 74 53 | 74 79 6c 65 20 2a 74 73 |e, TextS|tyle *ts|
|000017f0| 2c 20 57 45 48 61 6e 64 | 6c 65 20 68 57 45 29 0d |, WEHand|le hWE).|
|00001800| 7b 0d 09 2f 2f 20 66 69 | 6e 64 20 6f 75 74 20 77 |{..// fi|nd out w|
|00001810| 68 69 63 68 20 73 74 79 | 6c 65 20 61 74 74 72 69 |hich sty|le attri|
|00001820| 62 75 74 65 73 20 61 72 | 65 20 63 6f 6e 74 69 6e |butes ar|e contin|
|00001830| 6f 75 73 20 6f 76 65 72 | 20 74 68 65 20 73 65 6c |ous over| the sel|
|00001840| 65 63 74 69 6f 6e 20 72 | 61 6e 67 65 0d 09 2f 2f |ection r|ange..//|
|00001850| 20 6f 6e 20 65 6e 74 72 | 79 2c 20 74 68 65 20 6d | on entr|y, the m|
|00001860| 6f 64 65 20 62 69 74 6d | 61 70 20 73 70 65 63 69 |ode bitm|ap speci|
|00001870| 66 69 65 73 20 77 68 69 | 63 68 20 61 74 74 72 69 |fies whi|ch attri|
|00001880| 62 75 74 65 73 20 61 72 | 65 20 74 6f 20 62 65 20 |butes ar|e to be |
|00001890| 63 68 65 63 6b 65 64 0d | 09 2f 2f 20 6f 6e 20 65 |checked.|.// on e|
|000018a0| 78 69 74 2c 20 74 68 65 | 20 6d 6f 64 65 20 62 69 |xit, the| mode bi|
|000018b0| 74 6d 61 70 20 73 70 65 | 63 69 66 69 65 73 20 74 |tmap spe|cifies t|
|000018c0| 68 65 20 63 6f 6e 74 69 | 6e 75 6f 75 73 20 61 74 |he conti|nuous at|
|000018d0| 74 72 69 62 75 74 65 73 | 2c 20 61 6c 73 6f 20 63 |tributes|, also c|
|000018e0| 6f 70 69 65 64 20 74 6f | 20 74 73 0d 09 2f 2f 20 |opied to| ts..// |
|000018f0| 72 65 74 75 72 6e 20 74 | 72 75 65 20 69 66 20 61 |return t|rue if a|
|00001900| 6c 6c 20 73 70 65 63 69 | 66 69 65 64 20 61 74 74 |ll speci|fied att|
|00001910| 72 69 62 75 74 65 73 20 | 61 72 65 20 63 6f 6e 74 |ributes |are cont|
|00001920| 69 6e 75 6f 75 73 0d 0d | 09 57 45 50 74 72 20 70 |inuous..|.WEPtr p|
|00001930| 57 45 3b 0d 09 57 45 53 | 74 79 6c 65 4d 6f 64 65 |WE;..WES|tyleMode|
|00001940| 20 6f 6c 64 4d 6f 64 65 | 3b 0d 09 42 6f 6f 6c 65 | oldMode|;..Boole|
|00001950| 61 6e 20 63 6f 6e 74 69 | 6e 75 6f 75 73 53 74 79 |an conti|nuousSty|
|00001960| 6c 65 3b 0d 09 42 6f 6f | 6c 65 61 6e 20 73 61 76 |le;..Boo|lean sav|
|00001970| 65 57 45 4c 6f 63 6b 3b | 0d 0d 09 2f 2f 20 6c 6f |eWELock;|...// lo|
|00001980| 63 6b 20 74 68 65 20 57 | 45 20 72 65 63 6f 72 64 |ck the W|E record|
|00001990| 0d 09 70 57 45 20 3d 20 | 2a 68 57 45 3b 0d 09 73 |..pWE = |*hWE;..s|
|000019a0| 61 76 65 57 45 4c 6f 63 | 6b 20 3d 20 5f 57 45 53 |aveWELoc|k = _WES|
|000019b0| 65 74 48 61 6e 64 6c 65 | 4c 6f 63 6b 28 28 48 61 |etHandle|Lock((Ha|
|000019c0| 6e 64 6c 65 29 20 68 57 | 45 2c 20 74 72 75 65 29 |ndle) hW|E, true)|
|000019d0| 3b 0d 0d 09 2f 2f 20 6d | 61 73 6b 20 6f 75 74 20 |;...// m|ask out |
|000019e0| 75 6e 75 73 65 64 20 62 | 69 74 73 20 69 6e 20 2a |unused b|its in *|
|000019f0| 6d 6f 64 65 0d 09 2a 6d | 6f 64 65 20 26 3d 20 28 |mode..*m|ode &= (|
|00001a00| 77 65 44 6f 41 6c 6c 20 | 7c 20 77 65 44 6f 46 61 |weDoAll || weDoFa|
|00001a10| 63 65 4d 61 73 6b 29 3b | 0d 0d 09 2f 2f 20 74 77 |ceMask);|...// tw|
|00001a20| 6f 20 72 61 74 68 65 72 | 20 64 69 66 66 65 72 65 |o rather| differe|
|00001a30| 6e 74 20 70 61 74 68 73 | 20 61 72 65 20 74 61 6b |nt paths| are tak|
|00001a40| 65 6e 20 64 65 70 65 6e | 64 69 6e 67 20 6f 6e 20 |en depen|ding on |
|00001a50| 77 68 65 74 68 65 72 0d | 09 2f 2f 20 74 68 65 20 |whether.|.// the |
|00001a60| 73 65 6c 65 63 74 69 6f | 6e 20 72 61 6e 67 65 20 |selectio|n range |
|00001a70| 69 73 20 65 6d 70 74 79 | 20 6f 72 20 6e 6f 74 0d |is empty| or not.|
|00001a80| 09 69 66 20 28 70 57 45 | 2d 3e 73 65 6c 53 74 61 |.if (pWE|->selSta|
|00001a90| 72 74 20 3d 3d 20 70 57 | 45 2d 3e 73 65 6c 45 6e |rt == pW|E->selEn|
|00001aa0| 64 29 0d 09 7b 0d 09 09 | 2f 2f 20 69 66 20 74 68 |d)..{...|// if th|
|00001ab0| 65 20 73 65 6c 65 63 74 | 69 6f 6e 20 72 61 6e 67 |e select|ion rang|
|00001ac0| 65 20 69 73 20 65 6d 70 | 74 79 2c 20 61 6c 77 61 |e is emp|ty, alwa|
|00001ad0| 79 73 20 72 65 74 75 72 | 6e 20 74 72 75 65 20 61 |ys retur|n true a|
|00001ae0| 6e 64 20 73 65 74 20 74 | 73 0d 09 09 2f 2f 20 66 |nd set t|s...// f|
|00001af0| 72 6f 6d 20 74 68 65 20 | 6e 75 6c 6c 53 74 79 6c |rom the |nullStyl|
|00001b00| 65 20 72 65 63 6f 72 64 | 2c 20 61 66 74 65 72 20 |e record|, after |
|00001b10| 68 61 76 69 6e 67 20 76 | 61 6c 69 64 61 74 65 64 |having v|alidated|
|00001b20| 20 69 74 0d 09 09 63 6f | 6e 74 69 6e 75 6f 75 73 | it...co|ntinuous|
|00001b30| 53 74 79 6c 65 20 3d 20 | 74 72 75 65 3b 0d 09 09 |Style = |true;...|
|00001b40| 5f 57 45 53 79 6e 63 68 | 4e 75 6c 6c 53 74 79 6c |_WESynch|NullStyl|
|00001b50| 65 28 68 57 45 29 3b 0d | 09 09 5f 57 45 43 6f 70 |e(hWE);.|.._WECop|
|00001b60| 79 53 74 79 6c 65 28 26 | 70 57 45 2d 3e 6e 75 6c |yStyle(&|pWE->nul|
|00001b70| 6c 53 74 79 6c 65 2e 72 | 75 6e 53 74 79 6c 65 2c |lStyle.r|unStyle,|
|00001b80| 20 28 57 45 54 65 78 74 | 53 74 79 6c 65 20 2a 29 | (WEText|Style *)|
|00001b90| 20 74 73 2c 20 6e 6f 72 | 6d 61 6c 2c 20 28 2a 6d | ts, nor|mal, (*m|
|00001ba0| 6f 64 65 20 26 20 77 65 | 44 6f 41 6c 6c 29 20 7c |ode & we|DoAll) ||
|00001bb0| 20 77 65 44 6f 52 65 70 | 6c 61 63 65 46 61 63 65 | weDoRep|laceFace|
|00001bc0| 29 3b 0d 09 7d 0d 09 65 | 6c 73 65 0d 09 7b 0d 09 |);..}..e|lse..{..|
|00001bd0| 09 2f 2f 20 6f 74 68 65 | 72 77 69 73 65 20 67 65 |.// othe|rwise ge|
|00001be0| 74 20 74 68 65 20 63 6f | 6e 74 69 6e 75 6f 75 73 |t the co|ntinuous|
|00001bf0| 20 73 74 79 6c 65 20 61 | 74 74 72 69 62 75 74 65 | style a|ttribute|
|00001c00| 73 20 6f 76 65 72 20 74 | 68 65 20 73 65 6c 65 63 |s over t|he selec|
|00001c10| 74 69 6f 6e 20 72 61 6e | 67 65 0d 09 09 6f 6c 64 |tion ran|ge...old|
|00001c20| 4d 6f 64 65 20 3d 20 2a | 6d 6f 64 65 3b 0d 09 09 |Mode = *|mode;...|
|00001c30| 5f 57 45 43 6f 6e 74 69 | 6e 75 6f 75 73 53 74 79 |_WEConti|nuousSty|
|00001c40| 6c 65 52 61 6e 67 65 28 | 70 57 45 2d 3e 73 65 6c |leRange(|pWE->sel|
|00001c50| 53 74 61 72 74 2c 20 70 | 57 45 2d 3e 73 65 6c 45 |Start, p|WE->selE|
|00001c60| 6e 64 2c 20 6d 6f 64 65 | 2c 20 28 57 45 54 65 78 |nd, mode|, (WETex|
|00001c70| 74 53 74 79 6c 65 20 2a | 29 20 74 73 2c 20 68 57 |tStyle *|) ts, hW|
|00001c80| 45 29 3b 0d 0d 09 09 2f | 2f 20 72 65 74 75 72 6e |E);..../|/ return|
|00001c90| 20 74 72 75 65 20 69 66 | 20 6d 6f 64 65 20 68 61 | true if| mode ha|
|00001ca0| 73 6e 27 74 20 63 68 61 | 6e 67 65 64 0d 09 09 63 |sn't cha|nged...c|
|00001cb0| 6f 6e 74 69 6e 75 6f 75 | 73 53 74 79 6c 65 20 3d |ontinuou|sStyle =|
|00001cc0| 20 28 6f 6c 64 4d 6f 64 | 65 20 3d 3d 20 2a 6d 6f | (oldMod|e == *mo|
|00001cd0| 64 65 29 3b 0d 09 7d 0d | 0d 09 2f 2f 20 75 6e 6c |de);..}.|..// unl|
|00001ce0| 6f 63 6b 20 74 68 65 20 | 57 45 20 72 65 63 6f 72 |ock the |WE recor|
|00001cf0| 64 0d 09 5f 57 45 53 65 | 74 48 61 6e 64 6c 65 4c |d.._WESe|tHandleL|
|00001d00| 6f 63 6b 28 28 48 61 6e | 64 6c 65 29 20 68 57 45 |ock((Han|dle) hWE|
|00001d10| 2c 20 73 61 76 65 57 45 | 4c 6f 63 6b 29 3b 0d 0d |, saveWE|Lock);..|
|00001d20| 09 72 65 74 75 72 6e 20 | 63 6f 6e 74 69 6e 75 6f |.return |continuo|
|00001d30| 75 73 53 74 79 6c 65 3b | 0d 7d 0d 0d 73 74 61 74 |usStyle;|.}..stat|
|00001d40| 69 63 20 70 61 73 63 61 | 6c 20 42 6f 6f 6c 65 61 |ic pasca|l Boolea|
|00001d50| 6e 20 47 65 74 53 65 67 | 6d 65 6e 74 44 69 72 65 |n GetSeg|mentDire|
|00001d60| 63 74 69 6f 6e 28 53 49 | 6e 74 31 36 20 73 65 67 |ction(SI|nt16 seg|
|00001d70| 6d 65 6e 74 49 6e 64 65 | 78 2c 20 63 6f 6e 73 74 |mentInde|x, const|
|00001d80| 20 73 74 72 75 63 74 20 | 46 6f 72 6d 61 74 4f 72 | struct |FormatOr|
|00001d90| 64 65 72 44 61 74 61 20 | 2a 64 61 74 61 29 0d 7b |derData |*data).{|
|00001da0| 0d 09 72 65 74 75 72 6e | 20 5f 57 45 47 65 74 49 |..return| _WEGetI|
|00001db0| 6e 64 44 69 72 65 63 74 | 69 6f 6e 28 64 61 74 61 |ndDirect|ion(data|
|00001dc0| 2d 3e 66 69 72 73 74 52 | 75 6e 20 2b 20 73 65 67 |->firstR|un + seg|
|00001dd0| 6d 65 6e 74 49 6e 64 65 | 78 2c 20 64 61 74 61 2d |mentInde|x, data-|
|00001de0| 3e 68 57 45 29 3b 0d 7d | 0d 0d 70 61 73 63 61 6c |>hWE);.}|..pascal|
|00001df0| 20 76 6f 69 64 20 5f 57 | 45 53 65 67 6d 65 6e 74 | void _W|ESegment|
|00001e00| 4c 6f 6f 70 28 53 49 6e | 74 33 32 20 66 69 72 73 |Loop(SIn|t32 firs|
|00001e10| 74 4c 69 6e 65 2c 20 53 | 49 6e 74 33 32 20 6c 61 |tLine, S|Int32 la|
|00001e20| 73 74 4c 69 6e 65 2c 20 | 57 45 53 65 67 6d 65 6e |stLine, |WESegmen|
|00001e30| 74 4c 6f 6f 70 50 72 6f | 63 50 74 72 20 63 61 6c |tLoopPro|cPtr cal|
|00001e40| 6c 62 61 63 6b 2c 20 76 | 6f 69 64 20 2a 63 61 6c |lback, v|oid *cal|
|00001e50| 6c 62 61 63 6b 44 61 74 | 61 2c 20 57 45 48 61 6e |lbackDat|a, WEHan|
|00001e60| 64 6c 65 20 68 57 45 29 | 0d 7b 0d 09 2f 2f 20 46 |dle hWE)|.{..// F|
|00001e70| 6f 72 20 65 61 63 68 20 | 73 74 79 6c 65 20 73 65 |or each |style se|
|00001e80| 67 6d 65 6e 74 20 6f 6e | 20 65 76 65 72 79 20 6c |gment on| every l|
|00001e90| 69 6e 65 20 69 6e 20 74 | 68 65 20 73 70 65 63 69 |ine in t|he speci|
|00001ea0| 66 69 65 64 20 72 61 6e | 67 65 2c 20 73 65 74 20 |fied ran|ge, set |
|00001eb0| 75 70 0d 09 2f 2f 20 74 | 65 78 74 20 61 74 74 72 |up..// t|ext attr|
|00001ec0| 69 62 75 74 65 73 20 69 | 6e 20 74 68 65 20 70 6f |ibutes i|n the po|
|00001ed0| 72 74 20 61 6e 64 20 63 | 61 6c 6c 20 74 68 65 20 |rt and c|all the |
|00001ee0| 63 61 6c 6c 62 61 63 6b | 2e 0d 09 2f 2f 20 74 68 |callback|...// th|
|00001ef0| 65 20 57 45 20 72 65 63 | 6f 72 64 20 6d 75 73 74 |e WE rec|ord must|
|00001f00| 20 62 65 20 61 6c 72 65 | 61 64 79 20 6c 6f 63 6b | be alre|ady lock|
|00001f10| 65 64 0d 0d 09 57 45 50 | 74 72 20 70 57 45 20 3d |ed...WEP|tr pWE =|
|00001f20| 20 2a 68 57 45 3b 0d 09 | 57 45 4c 69 6e 65 52 65 | *hWE;..|WELineRe|
|00001f30| 63 20 2a 70 4c 69 6e 65 | 3b 0d 09 50 74 72 20 70 |c *pLine|;..Ptr p|
|00001f40| 54 65 78 74 3b 0d 09 53 | 49 6e 74 33 32 20 6c 69 |Text;..S|Int32 li|
|00001f50| 6e 65 49 6e 64 65 78 3b | 0d 09 53 49 6e 74 33 32 |neIndex;|..SInt32|
|00001f60| 20 66 69 72 73 74 52 75 | 6e 3b 0d 09 53 49 6e 74 | firstRu|n;..SInt|
|00001f70| 33 32 20 73 65 67 6d 65 | 6e 74 49 6e 64 65 78 2c |32 segme|ntIndex,|
|00001f80| 20 73 65 67 6d 65 6e 74 | 43 6f 75 6e 74 3b 0d 09 | segment|Count;..|
|00001f90| 53 49 6e 74 33 32 20 72 | 75 6e 49 6e 64 65 78 2c |SInt32 r|unIndex,|
|00001fa0| 20 63 75 72 72 65 6e 74 | 52 75 6e 49 6e 64 65 78 | current|RunIndex|
|00001fb0| 3b 0d 09 53 49 6e 74 33 | 32 20 6c 69 6e 65 53 74 |;..SInt3|2 lineSt|
|00001fc0| 61 72 74 2c 20 6c 69 6e | 65 45 6e 64 2c 20 73 65 |art, lin|eEnd, se|
|00001fd0| 67 6d 65 6e 74 53 74 61 | 72 74 2c 20 73 65 67 6d |gmentSta|rt, segm|
|00001fe0| 65 6e 74 45 6e 64 3b 0d | 09 4a 75 73 74 53 74 79 |entEnd;.|.JustSty|
|00001ff0| 6c 65 43 6f 64 65 20 73 | 74 79 6c 65 52 75 6e 50 |leCode s|tyleRunP|
|00002000| 6f 73 69 74 69 6f 6e 3b | 0d 09 57 45 52 75 6e 49 |osition;|..WERunI|
|00002010| 6e 66 6f 50 72 69 76 20 | 72 75 6e 49 6e 66 6f 3b |nfoPriv |runInfo;|
|00002020| 0d 09 53 49 6e 74 31 36 | 20 61 75 74 6f 4f 72 64 |..SInt16| autoOrd|
|00002030| 65 72 69 6e 67 5b 20 6b | 41 75 74 6f 4f 72 64 65 |ering[ k|AutoOrde|
|00002040| 72 69 6e 67 53 69 7a 65 | 20 5d 3b 0d 09 48 61 6e |ringSize| ];..Han|
|00002050| 64 6c 65 20 68 54 65 6d | 70 4f 72 64 65 72 69 6e |dle hTem|pOrderin|
|00002060| 67 20 3d 20 6e 69 6c 3b | 0d 09 53 49 6e 74 31 36 |g = nil;|..SInt16|
|00002070| 20 2a 70 4f 72 64 65 72 | 69 6e 67 20 3d 20 6e 69 | *pOrder|ing = ni|
|00002080| 6c 3b 0d 09 73 74 72 75 | 63 74 20 46 6f 72 6d 61 |l;..stru|ct Forma|
|00002090| 74 4f 72 64 65 72 44 61 | 74 61 20 66 6f 72 6d 61 |tOrderDa|ta forma|
|000020a0| 74 4f 72 64 65 72 44 61 | 74 61 3b 0d 09 42 6f 6f |tOrderDa|ta;..Boo|
|000020b0| 6c 65 61 6e 20 69 73 52 | 69 67 68 74 54 6f 4c 65 |lean isR|ightToLe|
|000020c0| 66 74 3b 0d 09 42 6f 6f | 6c 65 61 6e 20 73 61 76 |ft;..Boo|lean sav|
|000020d0| 65 4c 69 6e 65 4c 6f 63 | 6b 3b 0d 09 42 6f 6f 6c |eLineLoc|k;..Bool|
|000020e0| 65 61 6e 20 73 61 76 65 | 54 65 78 74 4c 6f 63 6b |ean save|TextLock|
|000020f0| 3b 0d 09 51 44 45 6e 76 | 69 72 6f 6e 6d 65 6e 74 |;..QDEnv|ironment|
|00002100| 20 73 61 76 65 45 6e 76 | 69 72 6f 6e 6d 65 6e 74 | saveEnv|ironment|
|00002110| 3b 0d 0d 09 73 74 61 74 | 69 63 20 53 74 79 6c 65 |;...stat|ic Style|
|00002120| 52 75 6e 44 69 72 65 63 | 74 69 6f 6e 55 50 50 20 |RunDirec|tionUPP |
|00002130| 64 69 72 65 63 74 69 6f | 6e 50 72 6f 63 20 3d 20 |directio|nProc = |
|00002140| 6e 69 6c 3b 0d 0d 09 2f | 2f 20 63 72 65 61 74 65 |nil;.../|/ create|
|00002150| 20 61 20 72 6f 75 74 69 | 6e 65 20 64 65 73 63 72 | a routi|ne descr|
|00002160| 69 70 74 6f 72 20 66 6f | 72 20 47 65 74 53 65 67 |iptor fo|r GetSeg|
|00002170| 6d 65 6e 74 44 69 72 65 | 63 74 69 6f 6e 2c 20 69 |mentDire|ction, i|
|00002180| 66 20 77 65 20 68 61 76 | 65 6e 27 74 20 61 6c 72 |f we hav|en't alr|
|00002190| 65 61 64 79 0d 09 69 66 | 20 28 64 69 72 65 63 74 |eady..if| (direct|
|000021a0| 69 6f 6e 50 72 6f 63 20 | 3d 3d 20 6e 69 6c 29 0d |ionProc |== nil).|
|000021b0| 09 7b 0d 23 69 66 20 41 | 43 43 45 53 53 4f 52 5f |.{.#if A|CCESSOR_|
|000021c0| 43 41 4c 4c 53 5f 41 52 | 45 5f 46 55 4e 43 54 49 |CALLS_AR|E_FUNCTI|
|000021d0| 4f 4e 53 0d 09 09 64 69 | 72 65 63 74 69 6f 6e 50 |ONS...di|rectionP|
|000021e0| 72 6f 63 20 3d 20 4e 65 | 77 53 74 79 6c 65 52 75 |roc = Ne|wStyleRu|
|000021f0| 6e 44 69 72 65 63 74 69 | 6f 6e 50 72 6f 63 28 28 |nDirecti|onProc((|
|00002200| 53 74 79 6c 65 52 75 6e | 44 69 72 65 63 74 69 6f |StyleRun|Directio|
|00002210| 6e 50 72 6f 63 50 74 72 | 29 26 47 65 74 53 65 67 |nProcPtr|)&GetSeg|
|00002220| 6d 65 6e 74 44 69 72 65 | 63 74 69 6f 6e 29 3b 0d |mentDire|ction);.|
|00002230| 23 65 6c 73 65 0d 09 09 | 64 69 72 65 63 74 69 6f |#else...|directio|
|00002240| 6e 50 72 6f 63 20 3d 20 | 4e 65 77 53 74 79 6c 65 |nProc = |NewStyle|
|00002250| 52 75 6e 44 69 72 65 63 | 74 69 6f 6e 50 72 6f 63 |RunDirec|tionProc|
|00002260| 28 26 47 65 74 53 65 67 | 6d 65 6e 74 44 69 72 65 |(&GetSeg|mentDire|
|00002270| 63 74 69 6f 6e 29 3b 0d | 23 65 6e 64 69 66 0d 09 |ction);.|#endif..|
|00002280| 7d 0d 0d 09 2f 2f 20 69 | 73 20 72 69 67 68 74 2d |}...// i|s right-|
|00002290| 74 6f 2d 6c 65 66 74 20 | 74 68 65 20 64 6f 6d 69 |to-left |the domi|
|000022a0| 6e 61 6e 74 20 6c 69 6e | 65 20 64 69 72 65 63 74 |nant lin|e direct|
|000022b0| 69 6f 6e 3f 0d 09 69 73 | 52 69 67 68 74 54 6f 4c |ion?..is|RightToL|
|000022c0| 65 66 74 20 3d 20 49 73 | 52 69 67 68 74 54 6f 4c |eft = Is|RightToL|
|000022d0| 65 66 74 28 70 57 45 2d | 3e 64 69 72 65 63 74 69 |eft(pWE-|>directi|
|000022e0| 6f 6e 29 3b 0d 0d 09 2f | 2f 20 73 61 76 65 20 74 |on);.../|/ save t|
|000022f0| 68 65 20 51 75 69 63 6b | 64 72 61 77 20 65 6e 76 |he Quick|draw env|
|00002300| 69 72 6f 6e 6d 65 6e 74 | 0d 09 5f 57 45 53 61 76 |ironment|.._WESav|
|00002310| 65 51 44 45 6e 76 69 72 | 6f 6e 6d 65 6e 74 28 70 |eQDEnvir|onment(p|
|00002320| 57 45 2d 3e 70 6f 72 74 | 2c 20 42 54 53 54 28 70 |WE->port|, BTST(p|
|00002330| 57 45 2d 3e 66 6c 61 67 | 73 2c 20 77 65 46 48 61 |WE->flag|s, weFHa|
|00002340| 73 43 6f 6c 6f 72 51 44 | 29 20 3f 20 74 72 75 65 |sColorQD|) ? true|
|00002350| 20 3a 20 66 61 6c 73 65 | 2c 20 26 73 61 76 65 45 | : false|, &saveE|
|00002360| 6e 76 69 72 6f 6e 6d 65 | 6e 74 29 3b 0d 0d 09 2f |nvironme|nt);.../|
|00002370| 2f 20 6d 61 6b 65 20 73 | 75 72 65 20 66 69 72 73 |/ make s|ure firs|
|00002380| 74 4c 69 6e 65 20 61 6e | 64 20 6c 61 73 74 4c 69 |tLine an|d lastLi|
|00002390| 6e 65 20 61 72 65 20 77 | 69 74 68 69 6e 20 74 68 |ne are w|ithin th|
|000023a0| 65 20 61 6c 6c 6f 77 65 | 64 20 72 61 6e 67 65 0d |e allowe|d range.|
|000023b0| 09 6c 69 6e 65 49 6e 64 | 65 78 20 3d 20 70 57 45 |.lineInd|ex = pWE|
|000023c0| 2d 3e 6e 4c 69 6e 65 73 | 20 2d 20 31 3b 0d 09 66 |->nLines| - 1;..f|
|000023d0| 69 72 73 74 4c 69 6e 65 | 20 3d 20 5f 57 45 50 69 |irstLine| = _WEPi|
|000023e0| 6e 49 6e 52 61 6e 67 65 | 28 66 69 72 73 74 4c 69 |nInRange|(firstLi|
|000023f0| 6e 65 2c 20 30 2c 20 6c | 69 6e 65 49 6e 64 65 78 |ne, 0, l|ineIndex|
|00002400| 29 3b 0d 09 6c 61 73 74 | 4c 69 6e 65 20 3d 20 5f |);..last|Line = _|
|00002410| 57 45 50 69 6e 49 6e 52 | 61 6e 67 65 28 6c 61 73 |WEPinInR|ange(las|
|00002420| 74 4c 69 6e 65 2c 20 30 | 2c 20 6c 69 6e 65 49 6e |tLine, 0|, lineIn|
|00002430| 64 65 78 29 3b 0d 0d 09 | 2f 2f 20 6c 6f 63 6b 20 |dex);...|// lock |
|00002440| 74 68 65 20 6c 69 6e 65 | 20 61 72 72 61 79 0d 09 |the line| array..|
|00002450| 73 61 76 65 4c 69 6e 65 | 4c 6f 63 6b 20 3d 20 5f |saveLine|Lock = _|
|00002460| 57 45 53 65 74 48 61 6e | 64 6c 65 4c 6f 63 6b 28 |WESetHan|dleLock(|
|00002470| 28 48 61 6e 64 6c 65 29 | 20 70 57 45 2d 3e 68 4c |(Handle)| pWE->hL|
|00002480| 69 6e 65 73 2c 20 74 72 | 75 65 29 3b 0d 09 70 4c |ines, tr|ue);..pL|
|00002490| 69 6e 65 20 3d 20 2a 70 | 57 45 2d 3e 68 4c 69 6e |ine = *p|WE->hLin|
|000024a0| 65 73 20 2b 20 66 69 72 | 73 74 4c 69 6e 65 3b 0d |es + fir|stLine;.|
|000024b0| 0d 09 2f 2f 20 6c 6f 63 | 6b 20 74 68 65 20 74 65 |..// loc|k the te|
|000024c0| 78 74 0d 09 73 61 76 65 | 54 65 78 74 4c 6f 63 6b |xt..save|TextLock|
|000024d0| 20 3d 20 5f 57 45 53 65 | 74 48 61 6e 64 6c 65 4c | = _WESe|tHandleL|
|000024e0| 6f 63 6b 28 70 57 45 2d | 3e 68 54 65 78 74 2c 20 |ock(pWE-|>hText, |
|000024f0| 74 72 75 65 29 3b 0d 09 | 70 54 65 78 74 20 3d 20 |true);..|pText = |
|00002500| 2a 70 57 45 2d 3e 68 54 | 65 78 74 3b 0d 0d 09 63 |*pWE->hT|ext;...c|
|00002510| 75 72 72 65 6e 74 52 75 | 6e 49 6e 64 65 78 20 3d |urrentRu|nIndex =|
|00002520| 20 2d 31 3b 0d 0d 09 2f | 2f 20 6c 6f 6f 70 20 74 | -1;.../|/ loop t|
|00002530| 68 72 75 20 74 68 65 20 | 73 70 65 63 69 66 69 65 |hru the |specifie|
|00002540| 64 20 6c 69 6e 65 73 0d | 09 66 6f 72 20 28 20 6c |d lines.|.for ( l|
|00002550| 69 6e 65 49 6e 64 65 78 | 20 3d 20 66 69 72 73 74 |ineIndex| = first|
|00002560| 4c 69 6e 65 3b 20 6c 69 | 6e 65 49 6e 64 65 78 20 |Line; li|neIndex |
|00002570| 3c 3d 20 6c 61 73 74 4c | 69 6e 65 3b 20 6c 69 6e |<= lastL|ine; lin|
|00002580| 65 49 6e 64 65 78 2b 2b | 20 29 0d 09 7b 0d 09 09 |eIndex++| )..{...|
|00002590| 2f 2f 20 67 65 74 20 6c | 69 6e 65 20 73 74 61 72 |// get l|ine star|
|000025a0| 74 20 61 6e 64 20 6c 69 | 6e 65 20 65 6e 64 0d 09 |t and li|ne end..|
|000025b0| 09 6c 69 6e 65 53 74 61 | 72 74 20 3d 20 70 4c 69 |.lineSta|rt = pLi|
|000025c0| 6e 65 5b 30 5d 2e 6c 69 | 6e 65 53 74 61 72 74 3b |ne[0].li|neStart;|
|000025d0| 0d 09 09 6c 69 6e 65 45 | 6e 64 20 3d 20 70 4c 69 |...lineE|nd = pLi|
|000025e0| 6e 65 5b 31 5d 2e 6c 69 | 6e 65 53 74 61 72 74 3b |ne[1].li|neStart;|
|000025f0| 0d 0d 09 09 2f 2f 20 63 | 61 6c 63 75 6c 61 74 65 |....// c|alculate|
|00002600| 20 74 68 65 20 69 6e 64 | 65 78 20 74 6f 20 74 68 | the ind|ex to th|
|00002610| 65 20 66 69 72 73 74 20 | 73 74 79 6c 65 20 72 75 |e first |style ru|
|00002620| 6e 20 6f 6e 20 74 68 65 | 20 6c 69 6e 65 0d 09 09 |n on the| line...|
|00002630| 66 69 72 73 74 52 75 6e | 20 3d 20 57 45 4f 66 66 |firstRun| = WEOff|
|00002640| 73 65 74 54 6f 52 75 6e | 28 6c 69 6e 65 53 74 61 |setToRun|(lineSta|
|00002650| 72 74 2c 20 68 57 45 29 | 3b 0d 0d 09 09 2f 2f 20 |rt, hWE)|;....// |
|00002660| 63 61 6c 63 75 6c 61 74 | 65 20 74 68 65 20 6e 75 |calculat|e the nu|
|00002670| 6d 62 65 72 20 6f 66 20 | 73 65 67 6d 65 6e 74 73 |mber of |segments|
|00002680| 20 6f 6e 20 74 68 69 73 | 20 6c 69 6e 65 0d 09 09 | on this| line...|
|00002690| 73 65 67 6d 65 6e 74 43 | 6f 75 6e 74 20 3d 20 57 |segmentC|ount = W|
|000026a0| 45 4f 66 66 73 65 74 54 | 6f 52 75 6e 28 6c 69 6e |EOffsetT|oRun(lin|
|000026b0| 65 45 6e 64 20 2d 20 31 | 2c 20 68 57 45 29 20 2d |eEnd - 1|, hWE) -|
|000026c0| 20 66 69 72 73 74 52 75 | 6e 20 2b 20 31 3b 0d 0d | firstRu|n + 1;..|
|000026d0| 09 09 69 66 20 28 42 54 | 53 54 28 70 57 45 2d 3e |..if (BT|ST(pWE->|
|000026e0| 66 6c 61 67 73 2c 20 77 | 65 46 42 69 64 69 72 65 |flags, w|eFBidire|
|000026f0| 63 74 69 6f 6e 61 6c 29 | 29 0d 09 09 7b 0d 09 09 |ctional)|)...{...|
|00002700| 09 2f 2f 20 53 50 45 43 | 49 41 4c 20 50 52 4f 43 |.// SPEC|IAL PROC|
|00002710| 45 53 53 49 4e 47 20 46 | 4f 52 20 42 49 44 49 52 |ESSING F|OR BIDIR|
|00002720| 45 43 54 49 4f 4e 41 4c | 20 53 43 52 49 50 54 53 |ECTIONAL| SCRIPTS|
|00002730| 0d 09 09 09 2f 2f 20 77 | 65 20 6e 65 65 64 20 61 |....// w|e need a|
|00002740| 6e 20 61 72 72 61 79 20 | 6f 66 20 73 65 67 6d 65 |n array |of segme|
|00002750| 6e 74 43 6f 75 6e 74 20 | 65 6e 74 72 69 65 73 20 |ntCount |entries |
|00002760| 66 6f 72 20 47 65 74 46 | 6f 72 6d 61 74 4f 72 64 |for GetF|ormatOrd|
|00002770| 65 72 0d 09 09 09 2f 2f | 20 69 6e 20 6d 6f 73 74 |er....//| in most|
|00002780| 20 63 61 73 65 73 2c 20 | 73 74 61 63 6b 20 73 74 | cases, |stack st|
|00002790| 6f 72 61 67 65 20 77 69 | 6c 6c 20 62 65 20 73 75 |orage wi|ll be su|
|000027a0| 66 66 69 63 69 65 6e 74 | 0d 09 09 09 69 66 20 28 |fficient|....if (|
|000027b0| 73 65 67 6d 65 6e 74 43 | 6f 75 6e 74 20 3c 3d 20 |segmentC|ount <= |
|000027c0| 6b 41 75 74 6f 4f 72 64 | 65 72 69 6e 67 53 69 7a |kAutoOrd|eringSiz|
|000027d0| 65 29 0d 09 09 09 7b 0d | 09 09 09 09 70 4f 72 64 |e)....{.|....pOrd|
|000027e0| 65 72 69 6e 67 20 3d 20 | 61 75 74 6f 4f 72 64 65 |ering = |autoOrde|
|000027f0| 72 69 6e 67 3b 0d 09 09 | 09 7d 0d 09 09 09 65 6c |ring;...|.}....el|
|00002800| 73 65 0d 09 09 09 7b 0d | 09 09 09 09 2f 2f 20 69 |se....{.|....// i|
|00002810| 6e 20 72 61 72 65 20 63 | 61 73 65 73 20 74 68 65 |n rare c|ases the|
|00002820| 20 6f 72 64 65 72 69 6e | 67 20 61 72 72 61 79 20 | orderin|g array |
|00002830| 6d 75 73 74 20 62 65 20 | 61 6c 6c 6f 63 61 74 65 |must be |allocate|
|00002840| 64 20 64 79 6e 61 6d 69 | 63 61 6c 6c 79 0d 09 09 |d dynami|cally...|
|00002850| 09 09 5f 57 45 46 6f 72 | 67 65 74 48 61 6e 64 6c |.._WEFor|getHandl|
|00002860| 65 28 26 68 54 65 6d 70 | 4f 72 64 65 72 69 6e 67 |e(&hTemp|Ordering|
|00002870| 29 3b 0d 09 09 09 09 69 | 66 20 28 5f 57 45 41 6c |);.....i|f (_WEAl|
|00002880| 6c 6f 63 61 74 65 28 73 | 65 67 6d 65 6e 74 43 6f |locate(s|egmentCo|
|00002890| 75 6e 74 20 2a 20 73 69 | 7a 65 6f 66 28 53 49 6e |unt * si|zeof(SIn|
|000028a0| 74 31 36 29 2c 20 6b 41 | 6c 6c 6f 63 54 65 6d 70 |t16), kA|llocTemp|
|000028b0| 2c 20 26 68 54 65 6d 70 | 4f 72 64 65 72 69 6e 67 |, &hTemp|Ordering|
|000028c0| 29 20 21 3d 20 6e 6f 45 | 72 72 29 0d 09 09 09 09 |) != noE|rr).....|
|000028d0| 7b 0d 09 09 09 09 09 2f | 2f 20 63 6f 75 6c 64 6e |{....../|/ couldn|
|000028e0| 27 74 20 61 6c 6c 6f 63 | 61 74 65 20 6d 65 6d 6f |'t alloc|ate memo|
|000028f0| 72 79 3a 20 65 6d 65 72 | 67 65 6e 63 79 20 65 78 |ry: emer|gency ex|
|00002900| 69 74 0d 09 09 09 09 09 | 62 72 65 61 6b 3b 0d 09 |it......|break;..|
|00002910| 09 09 09 7d 0d 09 09 09 | 09 48 4c 6f 63 6b 28 68 |...}....|.HLock(h|
|00002920| 54 65 6d 70 4f 72 64 65 | 72 69 6e 67 29 3b 0d 09 |TempOrde|ring);..|
|00002930| 09 09 09 70 4f 72 64 65 | 72 69 6e 67 20 3d 20 28 |...pOrde|ring = (|
|00002940| 53 49 6e 74 31 36 20 2a | 29 20 2a 68 54 65 6d 70 |SInt16 *|) *hTemp|
|00002950| 4f 72 64 65 72 69 6e 67 | 3b 0d 09 09 09 7d 0d 0d |Ordering|;....}..|
|00002960| 09 09 09 2f 2f 20 6f 62 | 74 61 69 6e 20 74 68 65 |...// ob|tain the|
|00002970| 20 63 6f 72 72 65 63 74 | 20 64 69 73 70 6c 61 79 | correct| display|
|00002980| 20 6f 72 64 65 72 20 66 | 6f 72 20 74 68 65 20 73 | order f|or the s|
|00002990| 65 67 6d 65 6e 74 73 0d | 09 09 09 69 66 20 28 73 |egments.|...if (s|
|000029a0| 65 67 6d 65 6e 74 43 6f | 75 6e 74 20 3e 20 31 29 |egmentCo|unt > 1)|
|000029b0| 0d 09 09 09 7b 0d 09 09 | 09 09 66 6f 72 6d 61 74 |....{...|..format|
|000029c0| 4f 72 64 65 72 44 61 74 | 61 2e 66 69 72 73 74 52 |OrderDat|a.firstR|
|000029d0| 75 6e 20 3d 20 66 69 72 | 73 74 52 75 6e 3b 0d 09 |un = fir|stRun;..|
|000029e0| 09 09 09 66 6f 72 6d 61 | 74 4f 72 64 65 72 44 61 |...forma|tOrderDa|
|000029f0| 74 61 2e 68 57 45 20 3d | 20 68 57 45 3b 0d 09 09 |ta.hWE =| hWE;...|
|00002a00| 09 09 47 65 74 46 6f 72 | 6d 61 74 4f 72 64 65 72 |..GetFor|matOrder|
|00002a10| 28 28 46 6f 72 6d 61 74 | 4f 72 64 65 72 50 74 72 |((Format|OrderPtr|
|00002a20| 29 20 70 4f 72 64 65 72 | 69 6e 67 2c 20 30 2c 20 |) pOrder|ing, 0, |
|00002a30| 73 65 67 6d 65 6e 74 43 | 6f 75 6e 74 20 2d 20 31 |segmentC|ount - 1|
|00002a40| 2c 20 69 73 52 69 67 68 | 74 54 6f 4c 65 66 74 2c |, isRigh|tToLeft,|
|00002a50| 20 64 69 72 65 63 74 69 | 6f 6e 50 72 6f 63 2c 20 | directi|onProc, |
|00002a60| 28 50 74 72 29 20 26 66 | 6f 72 6d 61 74 4f 72 64 |(Ptr) &f|ormatOrd|
|00002a70| 65 72 44 61 74 61 29 3b | 0d 09 09 09 7d 0d 09 09 |erData);|....}...|
|00002a80| 09 65 6c 73 65 0d 09 09 | 09 7b 0d 09 09 09 09 70 |.else...|.{.....p|
|00002a90| 4f 72 64 65 72 69 6e 67 | 5b 30 5d 20 3d 20 30 3b |Ordering|[0] = 0;|
|00002aa0| 0d 09 09 09 7d 0d 09 09 | 7d 0d 0d 09 09 2f 2f 20 |....}...|}....// |
|00002ab0| 6c 6f 6f 70 20 74 68 72 | 75 20 65 61 63 68 20 73 |loop thr|u each s|
|00002ac0| 65 67 6d 65 6e 74 20 6f | 6e 20 74 68 69 73 20 6c |egment o|n this l|
|00002ad0| 69 6e 65 0d 09 09 66 6f | 72 20 28 20 73 65 67 6d |ine...fo|r ( segm|
|00002ae0| 65 6e 74 49 6e 64 65 78 | 20 3d 20 30 3b 20 73 65 |entIndex| = 0; se|
|00002af0| 67 6d 65 6e 74 49 6e 64 | 65 78 20 3c 20 73 65 67 |gmentInd|ex < seg|
|00002b00| 6d 65 6e 74 43 6f 75 6e | 74 3b 20 73 65 67 6d 65 |mentCoun|t; segme|
|00002b10| 6e 74 49 6e 64 65 78 2b | 2b 20 29 0d 09 09 7b 0d |ntIndex+|+ )...{.|
|00002b20| 09 09 09 69 66 20 28 42 | 54 53 54 28 70 57 45 2d |...if (B|TST(pWE-|
|00002b30| 3e 66 6c 61 67 73 2c 20 | 77 65 46 42 69 64 69 72 |>flags, |weFBidir|
|00002b40| 65 63 74 69 6f 6e 61 6c | 29 29 0d 09 09 09 7b 0d |ectional|))....{.|
|00002b50| 09 09 09 09 72 75 6e 49 | 6e 64 65 78 20 3d 20 70 |....runI|ndex = p|
|00002b60| 4f 72 64 65 72 69 6e 67 | 5b 20 73 65 67 6d 65 6e |Ordering|[ segmen|
|00002b70| 74 49 6e 64 65 78 20 5d | 3b 0d 09 09 09 7d 0d 09 |tIndex ]|;....}..|
|00002b80| 09 09 65 6c 73 65 0d 09 | 09 09 7b 0d 09 09 09 09 |..else..|..{.....|
|00002b90| 72 75 6e 49 6e 64 65 78 | 20 3d 20 73 65 67 6d 65 |runIndex| = segme|
|00002ba0| 6e 74 49 6e 64 65 78 3b | 0d 09 09 09 7d 0d 09 09 |ntIndex;|....}...|
|00002bb0| 09 72 75 6e 49 6e 64 65 | 78 20 2b 3d 20 66 69 72 |.runInde|x += fir|
|00002bc0| 73 74 52 75 6e 3b 0d 0d | 09 09 09 69 66 20 28 63 |stRun;..|...if (c|
|00002bd0| 75 72 72 65 6e 74 52 75 | 6e 49 6e 64 65 78 20 21 |urrentRu|nIndex !|
|00002be0| 3d 20 72 75 6e 49 6e 64 | 65 78 29 0d 09 09 09 7b |= runInd|ex)....{|
|00002bf0| 0d 09 09 09 09 2f 2f 20 | 67 65 74 20 73 74 79 6c |.....// |get styl|
|00002c00| 65 20 72 75 6e 20 69 6e | 66 6f 72 6d 61 74 69 6f |e run in|formatio|
|00002c10| 6e 20 66 6f 72 20 74 68 | 65 20 63 75 72 72 65 6e |n for th|e curren|
|00002c20| 74 20 73 74 79 6c 65 20 | 72 75 6e 0d 09 09 09 09 |t style |run.....|
|00002c30| 5f 57 45 47 65 74 49 6e | 64 53 74 79 6c 65 28 72 |_WEGetIn|dStyle(r|
|00002c40| 75 6e 49 6e 64 65 78 2c | 20 26 72 75 6e 49 6e 66 |unIndex,| &runInf|
|00002c50| 6f 2c 20 68 57 45 29 3b | 0d 0d 09 09 09 09 2f 2f |o, hWE);|......//|
|00002c60| 20 73 65 74 20 6e 65 77 | 20 74 65 78 74 20 61 74 | set new| text at|
|00002c70| 74 72 69 62 75 74 65 73 | 0d 09 09 09 09 54 65 78 |tributes|.....Tex|
|00002c80| 74 46 6f 6e 74 28 72 75 | 6e 49 6e 66 6f 2e 72 75 |tFont(ru|nInfo.ru|
|00002c90| 6e 41 74 74 72 73 2e 72 | 75 6e 53 74 79 6c 65 2e |nAttrs.r|unStyle.|
|00002ca0| 74 73 46 6f 6e 74 29 3b | 0d 09 09 09 09 54 65 78 |tsFont);|.....Tex|
|00002cb0| 74 46 61 63 65 28 72 75 | 6e 49 6e 66 6f 2e 72 75 |tFace(ru|nInfo.ru|
|00002cc0| 6e 41 74 74 72 73 2e 72 | 75 6e 53 74 79 6c 65 2e |nAttrs.r|unStyle.|
|00002cd0| 74 73 46 61 63 65 29 3b | 0d 09 09 09 09 54 65 78 |tsFace);|.....Tex|
|00002ce0| 74 53 69 7a 65 28 72 75 | 6e 49 6e 66 6f 2e 72 75 |tSize(ru|nInfo.ru|
|00002cf0| 6e 41 74 74 72 73 2e 72 | 75 6e 53 74 79 6c 65 2e |nAttrs.r|unStyle.|
|00002d00| 74 73 53 69 7a 65 29 3b | 0d 0d 09 09 09 09 2f 2f |tsSize);|......//|
|00002d10| 20 72 65 6d 65 6d 62 65 | 72 20 63 75 72 72 65 6e | remembe|r curren|
|00002d20| 74 20 72 75 6e 20 69 6e | 64 65 78 0d 09 09 09 09 |t run in|dex.....|
|00002d30| 63 75 72 72 65 6e 74 52 | 75 6e 49 6e 64 65 78 20 |currentR|unIndex |
|00002d40| 3d 20 72 75 6e 49 6e 64 | 65 78 3b 0d 09 09 09 7d |= runInd|ex;....}|
|00002d50| 0d 0d 09 09 09 2f 2f 20 | 64 65 74 65 72 6d 69 6e |.....// |determin|
|00002d60| 65 20 73 65 67 6d 65 6e | 74 20 62 6f 75 6e 64 61 |e segmen|t bounda|
|00002d70| 72 69 65 73 0d 09 09 09 | 73 65 67 6d 65 6e 74 53 |ries....|segmentS|
|00002d80| 74 61 72 74 20 3d 20 28 | 72 75 6e 49 6e 66 6f 2e |tart = (|runInfo.|
|00002d90| 72 75 6e 53 74 61 72 74 | 20 3c 3d 20 6c 69 6e 65 |runStart| <= line|
|00002da0| 53 74 61 72 74 29 20 3f | 20 6c 69 6e 65 53 74 61 |Start) ?| lineSta|
|00002db0| 72 74 20 3a 20 72 75 6e | 49 6e 66 6f 2e 72 75 6e |rt : run|Info.run|
|00002dc0| 53 74 61 72 74 3b 0d 09 | 09 09 73 65 67 6d 65 6e |Start;..|..segmen|
|00002dd0| 74 45 6e 64 20 3d 20 28 | 72 75 6e 49 6e 66 6f 2e |tEnd = (|runInfo.|
|00002de0| 72 75 6e 45 6e 64 20 3e | 3d 20 6c 69 6e 65 45 6e |runEnd >|= lineEn|
|00002df0| 64 29 20 3f 20 6c 69 6e | 65 45 6e 64 20 3a 20 72 |d) ? lin|eEnd : r|
|00002e00| 75 6e 49 6e 66 6f 2e 72 | 75 6e 45 6e 64 3b 0d 0d |unInfo.r|unEnd;..|
|00002e10| 09 09 09 2f 2f 20 64 65 | 74 65 72 6d 69 6e 65 20 |...// de|termine |
|00002e20| 74 68 65 20 72 65 6c 61 | 74 69 76 65 20 70 6f 73 |the rela|tive pos|
|00002e30| 69 74 69 6f 6e 20 6f 66 | 20 74 68 69 73 20 73 65 |ition of| this se|
|00002e40| 67 6d 65 6e 74 20 6f 6e | 20 74 68 65 20 6c 69 6e |gment on| the lin|
|00002e50| 65 0d 09 09 09 73 74 79 | 6c 65 52 75 6e 50 6f 73 |e....sty|leRunPos|
|00002e60| 69 74 69 6f 6e 20 3d 20 | 30 3b 09 09 2f 2f 20 6f |ition = |0;..// o|
|00002e70| 6e 6c 79 53 74 79 6c 65 | 52 75 6e 0d 09 09 09 69 |nlyStyle|Run....i|
|00002e80| 66 20 28 73 65 67 6d 65 | 6e 74 49 6e 64 65 78 20 |f (segme|ntIndex |
|00002e90| 3c 20 73 65 67 6d 65 6e | 74 43 6f 75 6e 74 20 2d |< segmen|tCount -|
|00002ea0| 20 31 29 0d 09 09 09 7b | 0d 09 09 09 09 73 74 79 | 1)....{|.....sty|
|00002eb0| 6c 65 52 75 6e 50 6f 73 | 69 74 69 6f 6e 20 2b 3d |leRunPos|ition +=|
|00002ec0| 20 31 3b 09 2f 2f 20 6c | 65 66 74 53 74 79 6c 65 | 1;.// l|eftStyle|
|00002ed0| 52 75 6e 20 6f 72 20 6d | 69 64 64 6c 65 53 74 79 |Run or m|iddleSty|
|00002ee0| 6c 65 52 75 6e 0d 09 09 | 09 7d 0d 09 09 09 69 66 |leRun...|.}....if|
|00002ef0| 20 28 73 65 67 6d 65 6e | 74 49 6e 64 65 78 20 3e | (segmen|tIndex >|
|00002f00| 20 30 29 0d 09 09 09 7b | 0d 09 09 09 09 73 74 79 | 0)....{|.....sty|
|00002f10| 6c 65 52 75 6e 50 6f 73 | 69 74 69 6f 6e 20 2b 3d |leRunPos|ition +=|
|00002f20| 20 32 3b 09 2f 2f 20 72 | 69 67 68 74 53 74 79 6c | 2;.// r|ightStyl|
|00002f30| 65 52 75 6e 20 6f 72 20 | 6d 69 64 64 6c 65 53 74 |eRun or |middleSt|
|00002f40| 79 6c 65 52 75 6e 0d 09 | 09 09 7d 0d 0d 09 09 09 |yleRun..|..}.....|
|00002f50| 2f 2f 20 64 6f 20 74 68 | 65 20 63 61 6c 6c 62 61 |// do th|e callba|
|00002f60| 63 6b 0d 09 09 09 69 66 | 20 28 63 61 6c 6c 62 61 |ck....if| (callba|
|00002f70| 63 6b 28 70 4c 69 6e 65 | 2c 20 26 72 75 6e 49 6e |ck(pLine|, &runIn|
|00002f80| 66 6f 2e 72 75 6e 41 74 | 74 72 73 2c 20 70 54 65 |fo.runAt|trs, pTe|
|00002f90| 78 74 20 2b 20 73 65 67 | 6d 65 6e 74 53 74 61 72 |xt + seg|mentStar|
|00002fa0| 74 2c 20 73 65 67 6d 65 | 6e 74 53 74 61 72 74 2c |t, segme|ntStart,|
|00002fb0| 20 73 65 67 6d 65 6e 74 | 45 6e 64 20 2d 20 73 65 | segment|End - se|
|00002fc0| 67 6d 65 6e 74 53 74 61 | 72 74 2c 20 73 74 79 6c |gmentSta|rt, styl|
|00002fd0| 65 52 75 6e 50 6f 73 69 | 74 69 6f 6e 2c 20 68 57 |eRunPosi|tion, hW|
|00002fe0| 45 2c 20 63 61 6c 6c 62 | 61 63 6b 44 61 74 61 29 |E, callb|ackData)|
|00002ff0| 29 0d 09 09 09 7b 0d 09 | 09 09 09 62 72 65 61 6b |)....{..|...break|
|00003000| 3b 0d 09 09 09 7d 0d 09 | 09 7d 3b 0d 09 09 70 4c |;....}..|.};...pL|
|00003010| 69 6e 65 2b 2b 3b 0d 09 | 7d 0d 0d 09 2f 2f 20 75 |ine++;..|}...// u|
|00003020| 6e 6c 6f 63 6b 20 74 68 | 65 20 74 65 78 74 0d 09 |nlock th|e text..|
|00003030| 5f 57 45 53 65 74 48 61 | 6e 64 6c 65 4c 6f 63 6b |_WESetHa|ndleLock|
|00003040| 28 70 57 45 2d 3e 68 54 | 65 78 74 2c 20 73 61 76 |(pWE->hT|ext, sav|
|00003050| 65 54 65 78 74 4c 6f 63 | 6b 29 3b 0d 0d 09 2f 2f |eTextLoc|k);...//|
|00003060| 20 75 6e 6c 6f 63 6b 20 | 74 68 65 20 6c 69 6e 65 | unlock |the line|
|00003070| 20 61 72 72 61 79 0d 09 | 5f 57 45 53 65 74 48 61 | array..|_WESetHa|
|00003080| 6e 64 6c 65 4c 6f 63 6b | 28 28 48 61 6e 64 6c 65 |ndleLock|((Handle|
|00003090| 29 20 70 57 45 2d 3e 68 | 4c 69 6e 65 73 2c 20 73 |) pWE->h|Lines, s|
|000030a0| 61 76 65 4c 69 6e 65 4c | 6f 63 6b 29 3b 0d 0d 09 |aveLineL|ock);...|
|000030b0| 2f 2f 20 72 65 73 74 6f | 72 65 20 74 68 65 20 51 |// resto|re the Q|
|000030c0| 75 69 63 6b 64 72 61 77 | 20 65 6e 76 69 72 6f 6e |uickdraw| environ|
|000030d0| 6d 65 6e 74 0d 09 5f 57 | 45 52 65 73 74 6f 72 65 |ment.._W|ERestore|
|000030e0| 51 44 45 6e 76 69 72 6f | 6e 6d 65 6e 74 28 26 73 |QDEnviro|nment(&s|
|000030f0| 61 76 65 45 6e 76 69 72 | 6f 6e 6d 65 6e 74 29 3b |aveEnvir|onment);|
|00003100| 0d 0d 09 2f 2f 20 64 69 | 73 70 6f 73 65 20 6f 66 |...// di|spose of|
|00003110| 20 61 6e 79 20 74 65 6d | 70 6f 72 61 72 79 20 73 | any tem|porary s|
|00003120| 74 6f 72 61 67 65 0d 09 | 5f 57 45 46 6f 72 67 65 |torage..|_WEForge|
|00003130| 74 48 61 6e 64 6c 65 28 | 26 68 54 65 6d 70 4f 72 |tHandle(|&hTempOr|
|00003140| 64 65 72 69 6e 67 29 3b | 0d 7d 0d 0d 70 61 73 63 |dering);|.}..pasc|
|00003150| 61 6c 20 76 6f 69 64 20 | 5f 57 45 44 72 61 77 54 |al void |_WEDrawT|
|00003160| 53 4d 48 69 6c 69 74 65 | 28 52 65 63 74 20 2a 73 |SMHilite|(Rect *s|
|00003170| 65 67 6d 65 6e 74 52 65 | 63 74 2c 20 55 49 6e 74 |egmentRe|ct, UInt|
|00003180| 38 20 74 73 46 6c 61 67 | 73 29 0d 7b 0d 09 53 49 |8 tsFlag|s).{..SI|
|00003190| 6e 74 31 36 20 75 6e 64 | 65 72 6c 69 6e 65 48 65 |nt16 und|erlineHe|
|000031a0| 69 67 68 74 3b 0d 09 52 | 47 42 43 6f 6c 6f 72 20 |ight;..R|GBColor |
|000031b0| 62 61 63 6b 67 72 6f 75 | 6e 64 2c 20 66 6f 72 65 |backgrou|nd, fore|
|000031c0| 67 72 6f 75 6e 64 2c 20 | 73 61 76 65 46 6f 72 65 |ground, |saveFore|
|000031d0| 67 72 6f 75 6e 64 3b 0d | 09 42 6f 6f 6c 65 61 6e |ground;.|.Boolean|
|000031e0| 20 69 73 43 6f 6c 6f 72 | 50 6f 72 74 3b 0d 09 42 | isColor|Port;..B|
|000031f0| 6f 6f 6c 65 61 6e 20 75 | 73 69 6e 67 54 72 75 65 |oolean u|singTrue|
|00003200| 47 72 61 79 3b 0d 23 69 | 66 20 21 43 41 4c 4c 5f |Gray;.#i|f !CALL_|
|00003210| 4e 4f 54 5f 49 4e 5f 43 | 41 52 42 4f 4e 0d 09 69 |NOT_IN_C|ARBON..i|
|00003220| 73 43 6f 6c 6f 72 50 6f | 72 74 20 3d 20 74 72 75 |sColorPo|rt = tru|
|00003230| 65 3b 0d 23 65 6c 73 65 | 0d 09 69 73 43 6f 6c 6f |e;.#else|..isColo|
|00003240| 72 50 6f 72 74 20 3d 20 | 28 28 28 43 47 72 61 66 |rPort = |(((CGraf|
|00003250| 50 74 72 29 20 71 64 2e | 74 68 65 50 6f 72 74 29 |Ptr) qd.|thePort)|
|00003260| 2d 3e 70 6f 72 74 56 65 | 72 73 69 6f 6e 20 3c 20 |->portVe|rsion < |
|00003270| 30 29 3b 0d 23 65 6e 64 | 69 66 0d 09 75 73 69 6e |0);.#end|if..usin|
|00003280| 67 54 72 75 65 47 72 61 | 79 20 3d 20 66 61 6c 73 |gTrueGra|y = fals|
|00003290| 65 3b 0d 0d 09 2f 2f 20 | 62 79 20 64 65 66 61 75 |e;...// |by defau|
|000032a0| 6c 74 2c 20 74 68 65 20 | 70 65 6e 20 70 61 74 74 |lt, the |pen patt|
|000032b0| 65 72 6e 20 69 73 20 73 | 6f 6c 69 64 0d 23 69 66 |ern is s|olid.#if|
|000032c0| 20 41 43 43 45 53 53 4f | 52 5f 43 41 4c 4c 53 5f | ACCESSO|R_CALLS_|
|000032d0| 41 52 45 5f 46 55 4e 43 | 54 49 4f 4e 53 0d 09 7b |ARE_FUNC|TIONS..{|
|000032e0| 0d 09 09 50 61 74 74 65 | 72 6e 20 62 6c 61 63 6b |...Patte|rn black|
|000032f0| 50 61 74 74 65 72 6e 3b | 0d 09 09 47 65 74 51 44 |Pattern;|...GetQD|
|00003300| 47 6c 6f 62 61 6c 73 42 | 6c 61 63 6b 28 26 62 6c |GlobalsB|lack(&bl|
|00003310| 61 63 6b 50 61 74 74 65 | 72 6e 29 3b 0d 09 09 50 |ackPatte|rn);...P|
|00003320| 65 6e 50 61 74 28 26 62 | 6c 61 63 6b 50 61 74 74 |enPat(&b|lackPatt|
|00003330| 65 72 6e 29 3b 0d 09 7d | 0d 23 65 6c 73 65 0d 09 |ern);..}|.#else..|
|00003340| 50 65 6e 50 61 74 28 26 | 71 64 2e 62 6c 61 63 6b |PenPat(&|qd.black|
|00003350| 29 3b 0d 23 65 6e 64 69 | 66 0d 0d 09 2f 2f 20 69 |);.#endi|f...// i|
|00003360| 66 20 77 65 27 72 65 20 | 64 72 61 77 69 6e 67 20 |f we're |drawing |
|00003370| 69 6e 20 63 6f 6c 6f 72 | 2c 20 73 65 74 20 74 68 |in color|, set th|
|00003380| 65 20 66 6f 72 65 67 72 | 6f 75 6e 64 20 63 6f 6c |e foregr|ound col|
|00003390| 6f 72 0d 09 69 66 20 28 | 69 73 43 6f 6c 6f 72 50 |or..if (|isColorP|
|000033a0| 6f 72 74 29 0d 09 7b 0d | 09 09 2f 2f 20 73 61 76 |ort)..{.|..// sav|
|000033b0| 65 20 66 6f 72 65 67 72 | 6f 75 6e 64 20 63 6f 6c |e foregr|ound col|
|000033c0| 6f 72 0d 09 09 47 65 74 | 46 6f 72 65 43 6f 6c 6f |or...Get|ForeColo|
|000033d0| 72 28 26 73 61 76 65 46 | 6f 72 65 67 72 6f 75 6e |r(&saveF|oregroun|
|000033e0| 64 29 3b 0d 0d 09 09 2f | 2f 20 62 79 20 64 65 66 |d);..../|/ by def|
|000033f0| 61 75 6c 74 2c 20 74 68 | 65 20 66 6f 72 65 67 72 |ault, th|e foregr|
|00003400| 6f 75 6e 64 20 63 6f 6c | 6f 72 20 69 73 20 62 6c |ound col|or is bl|
|00003410| 61 63 6b 0d 09 09 66 6f | 72 65 67 72 6f 75 6e 64 |ack...fo|reground|
|00003420| 2e 72 65 64 20 3d 20 30 | 3b 0d 09 09 66 6f 72 65 |.red = 0|;...fore|
|00003430| 67 72 6f 75 6e 64 2e 67 | 72 65 65 6e 20 3d 20 30 |ground.g|reen = 0|
|00003440| 3b 0d 09 09 66 6f 72 65 | 67 72 6f 75 6e 64 2e 62 |;...fore|ground.b|
|00003450| 6c 75 65 20 3d 20 30 3b | 0d 0d 09 09 2f 2f 20 69 |lue = 0;|....// i|
|00003460| 66 20 77 65 27 72 65 20 | 75 6e 64 65 72 6c 69 6e |f we're |underlin|
|00003470| 69 6e 67 20 72 61 77 20 | 28 75 6e 63 6f 6e 76 65 |ing raw |(unconve|
|00003480| 72 74 65 64 29 20 74 65 | 78 74 2c 20 73 65 65 20 |rted) te|xt, see |
|00003490| 69 66 20 61 20 22 74 72 | 75 65 20 67 72 61 79 22 |if a "tr|ue gray"|
|000034a0| 20 69 73 20 61 76 61 69 | 6c 61 62 6c 65 0d 09 09 | is avai|lable...|
|000034b0| 69 66 20 28 21 42 54 53 | 54 28 74 73 46 6c 61 67 |if (!BTS|T(tsFlag|
|000034c0| 73 2c 20 74 73 54 53 4d | 43 6f 6e 76 65 72 74 65 |s, tsTSM|Converte|
|000034d0| 64 29 29 0d 09 09 7b 0d | 09 09 09 47 65 74 42 61 |d))...{.|...GetBa|
|000034e0| 63 6b 43 6f 6c 6f 72 28 | 26 62 61 63 6b 67 72 6f |ckColor(|&backgro|
|000034f0| 75 6e 64 29 3b 0d 09 09 | 09 75 73 69 6e 67 54 72 |und);...|.usingTr|
|00003500| 75 65 47 72 61 79 20 3d | 20 47 65 74 47 72 61 79 |ueGray =| GetGray|
|00003510| 28 47 65 74 47 44 65 76 | 69 63 65 28 29 2c 20 26 |(GetGDev|ice(), &|
|00003520| 62 61 63 6b 67 72 6f 75 | 6e 64 2c 20 26 66 6f 72 |backgrou|nd, &for|
|00003530| 65 67 72 6f 75 6e 64 29 | 3b 0d 09 09 7d 20 2f 2f |eground)|;...} //|
|00003540| 20 69 66 20 72 61 77 20 | 74 65 78 74 0d 0d 09 09 | if raw |text....|
|00003550| 2f 2f 20 73 65 74 20 74 | 68 65 20 66 6f 72 65 67 |// set t|he foreg|
|00003560| 72 6f 75 6e 64 20 63 6f | 6c 6f 72 0d 09 09 52 47 |round co|lor...RG|
|00003570| 42 46 6f 72 65 43 6f 6c | 6f 72 28 26 66 6f 72 65 |BForeCol|or(&fore|
|00003580| 67 72 6f 75 6e 64 29 3b | 0d 09 7d 20 2f 2f 20 69 |ground);|..} // i|
|00003590| 66 20 63 6f 6c 6f 72 20 | 67 72 61 66 20 70 6f 72 |f color |graf por|
|000035a0| 74 0d 0d 09 2f 2f 20 69 | 66 20 77 65 27 72 65 20 |t...// i|f we're |
|000035b0| 75 6e 64 65 72 6c 69 6e | 69 6e 67 20 72 61 77 20 |underlin|ing raw |
|000035c0| 28 75 6e 63 6f 6e 76 65 | 72 74 65 64 29 20 74 65 |(unconve|rted) te|
|000035d0| 78 74 20 61 6e 64 20 6e | 6f 20 74 72 75 65 20 67 |xt and n|o true g|
|000035e0| 72 61 79 20 69 73 20 61 | 76 61 69 6c 61 62 6c 65 |ray is a|vailable|
|000035f0| 2c 0d 09 2f 2f 20 73 69 | 6d 75 6c 61 74 65 20 67 |,..// si|mulate g|
|00003600| 72 61 79 20 77 69 74 68 | 20 61 20 35 30 25 20 70 |ray with| a 50% p|
|00003610| 61 74 74 65 72 6e 0d 09 | 69 66 20 28 21 42 54 53 |attern..|if (!BTS|
|00003620| 54 28 74 73 46 6c 61 67 | 73 2c 20 74 73 54 53 4d |T(tsFlag|s, tsTSM|
|00003630| 43 6f 6e 76 65 72 74 65 | 64 29 29 0d 09 7b 0d 09 |Converte|d))..{..|
|00003640| 09 69 66 20 28 21 75 73 | 69 6e 67 54 72 75 65 47 |.if (!us|ingTrueG|
|00003650| 72 61 79 29 0d 09 09 7b | 0d 23 69 66 20 41 43 43 |ray)...{|.#if ACC|
|00003660| 45 53 53 4f 52 5f 43 41 | 4c 4c 53 5f 41 52 45 5f |ESSOR_CA|LLS_ARE_|
|00003670| 46 55 4e 43 54 49 4f 4e | 53 0d 09 09 09 50 61 74 |FUNCTION|S....Pat|
|00003680| 74 65 72 6e 20 67 72 61 | 79 50 61 74 74 65 72 6e |tern gra|yPattern|
|00003690| 3b 0d 09 09 09 47 65 74 | 51 44 47 6c 6f 62 61 6c |;....Get|QDGlobal|
|000036a0| 73 47 72 61 79 28 26 67 | 72 61 79 50 61 74 74 65 |sGray(&g|rayPatte|
|000036b0| 72 6e 29 3b 0d 09 09 09 | 50 65 6e 50 61 74 28 26 |rn);....|PenPat(&|
|000036c0| 67 72 61 79 50 61 74 74 | 65 72 6e 29 3b 0d 23 65 |grayPatt|ern);.#e|
|000036d0| 6c 73 65 0d 09 09 09 50 | 65 6e 50 61 74 28 26 71 |lse....P|enPat(&q|
|000036e0| 64 2e 67 72 61 79 29 3b | 0d 23 65 6e 64 69 66 0d |d.gray);|.#endif.|
|000036f0| 09 09 7d 0d 09 7d 0d 09 | 2f 2f 20 75 73 65 20 61 |..}..}..|// use a|
|00003700| 20 32 2d 70 69 78 65 6c | 20 74 61 6c 6c 20 75 6e | 2-pixel| tall un|
|00003710| 64 65 72 6c 69 6e 65 20 | 69 66 20 74 65 78 74 20 |derline |if text |
|00003720| 69 73 20 22 73 65 6c 65 | 63 74 65 64 22 2c 20 65 |is "sele|cted", e|
|00003730| 6c 73 65 20 75 73 65 20 | 61 20 31 2d 70 69 78 65 |lse use |a 1-pixe|
|00003740| 6c 20 74 61 6c 6c 20 75 | 6e 64 65 72 6c 69 6e 65 |l tall u|nderline|
|00003750| 0d 09 75 6e 64 65 72 6c | 69 6e 65 48 65 69 67 68 |..underl|ineHeigh|
|00003760| 74 20 3d 20 42 54 53 54 | 28 74 73 46 6c 61 67 73 |t = BTST|(tsFlags|
|00003770| 2c 20 74 73 54 53 4d 53 | 65 6c 65 63 74 65 64 29 |, tsTSMS|elected)|
|00003780| 20 3f 20 32 20 3a 20 31 | 3b 0d 0d 09 2f 2f 20 73 | ? 2 : 1|;...// s|
|00003790| 65 67 6d 65 6e 74 52 65 | 63 74 20 62 65 63 6f 6d |egmentRe|ct becom|
|000037a0| 65 73 20 74 68 65 20 72 | 65 63 74 61 6e 67 6c 65 |es the r|ectangle|
|000037b0| 20 74 6f 20 70 61 69 6e | 74 0d 09 49 6e 73 65 74 | to pain|t..Inset|
|000037c0| 52 65 63 74 28 73 65 67 | 6d 65 6e 74 52 65 63 74 |Rect(seg|mentRect|
|000037d0| 2c 20 31 2c 20 30 29 3b | 0d 09 73 65 67 6d 65 6e |, 1, 0);|..segmen|
|000037e0| 74 52 65 63 74 2d 3e 74 | 6f 70 20 3d 20 73 65 67 |tRect->t|op = seg|
|000037f0| 6d 65 6e 74 52 65 63 74 | 2d 3e 62 6f 74 74 6f 6d |mentRect|->bottom|
|00003800| 20 2d 20 75 6e 64 65 72 | 6c 69 6e 65 48 65 69 67 | - under|lineHeig|
|00003810| 68 74 3b 0d 0d 09 2f 2f | 20 64 72 61 77 20 74 68 |ht;...//| draw th|
|00003820| 65 20 75 6e 64 65 72 6c | 69 6e 65 0d 09 50 61 69 |e underl|ine..Pai|
|00003830| 6e 74 52 65 63 74 28 73 | 65 67 6d 65 6e 74 52 65 |ntRect(s|egmentRe|
|00003840| 63 74 29 3b 0d 0d 09 2f | 2f 20 72 65 73 74 6f 72 |ct);.../|/ restor|
|00003850| 65 20 74 68 65 20 66 6f | 72 65 67 72 6f 75 6e 64 |e the fo|reground|
|00003860| 20 63 6f 6c 6f 72 0d 09 | 69 66 20 28 69 73 43 6f | color..|if (isCo|
|00003870| 6c 6f 72 50 6f 72 74 29 | 0d 09 7b 0d 09 09 52 47 |lorPort)|..{...RG|
|00003880| 42 46 6f 72 65 43 6f 6c | 6f 72 28 26 73 61 76 65 |BForeCol|or(&save|
|00003890| 46 6f 72 65 67 72 6f 75 | 6e 64 29 3b 0d 09 7d 0d |Foregrou|nd);..}.|
|000038a0| 7d 0d 0d 73 74 61 74 69 | 63 20 42 6f 6f 6c 65 61 |}..stati|c Boolea|
|000038b0| 6e 20 53 4c 44 72 61 77 | 0d 09 28 0d 09 09 57 45 |n SLDraw|..(...WE|
|000038c0| 4c 69 6e 65 52 65 63 20 | 2a 70 4c 69 6e 65 2c 0d |LineRec |*pLine,.|
|000038d0| 09 09 63 6f 6e 73 74 20 | 57 45 52 75 6e 41 74 74 |..const |WERunAtt|
|000038e0| 72 69 62 75 74 65 73 20 | 2a 70 41 74 74 72 73 2c |ributes |*pAttrs,|
|000038f0| 0d 09 09 50 74 72 20 70 | 53 65 67 6d 65 6e 74 2c |...Ptr p|Segment,|
|00003900| 0d 09 09 53 49 6e 74 33 | 32 20 73 65 67 6d 65 6e |...SInt3|2 segmen|
|00003910| 74 53 74 61 72 74 2c 0d | 09 09 53 49 6e 74 33 32 |tStart,.|..SInt32|
|00003920| 20 73 65 67 6d 65 6e 74 | 4c 65 6e 67 74 68 2c 0d | segment|Length,.|
|00003930| 09 09 4a 75 73 74 53 74 | 79 6c 65 43 6f 64 65 20 |..JustSt|yleCode |
|00003940| 73 74 79 6c 65 52 75 6e | 50 6f 73 69 74 69 6f 6e |styleRun|Position|
|00003950| 2c 0d 09 09 57 45 48 61 | 6e 64 6c 65 20 68 57 45 |,...WEHa|ndle hWE|
|00003960| 2c 0d 09 09 76 6f 69 64 | 20 2a 63 61 6c 6c 62 61 |,...void| *callba|
|00003970| 63 6b 44 61 74 61 0d 09 | 29 0d 7b 0d 23 70 72 61 |ckData..|).{.#pra|
|00003980| 67 6d 61 20 75 6e 75 73 | 65 64 28 73 65 67 6d 65 |gma unus|ed(segme|
|00003990| 6e 74 53 74 61 72 74 29 | 0d 09 73 74 72 75 63 74 |ntStart)|..struct|
|000039a0| 20 53 4c 44 72 61 77 44 | 61 74 61 20 2a 63 64 20 | SLDrawD|ata *cd |
|000039b0| 3d 20 28 73 74 72 75 63 | 74 20 53 4c 44 72 61 77 |= (struc|t SLDraw|
|000039c0| 44 61 74 61 20 2a 29 20 | 63 61 6c 6c 62 61 63 6b |Data *) |callback|
|000039d0| 44 61 74 61 3b 0d 09 57 | 45 50 74 72 20 70 57 45 |Data;..W|EPtr pWE|
|000039e0| 20 3d 20 2a 68 57 45 3b | 0d 09 46 69 78 65 64 20 | = *hWE;|..Fixed |
|000039f0| 73 6c 6f 70 3b 0d 09 52 | 65 63 74 20 73 65 67 6d |slop;..R|ect segm|
|00003a00| 65 6e 74 52 65 63 74 3b | 0d 09 52 47 42 43 6f 6c |entRect;|..RGBCol|
|00003a10| 6f 72 20 72 67 62 54 65 | 6d 70 31 2c 20 72 67 62 |or rgbTe|mp1, rgb|
|00003a20| 54 65 6d 70 32 3b 0d 0d | 09 2f 2f 20 69 73 20 74 |Temp2;..|.// is t|
|00003a30| 68 69 73 20 74 68 65 20 | 66 69 72 73 74 20 73 65 |his the |first se|
|00003a40| 67 6d 65 6e 74 20 6f 6e | 20 74 68 69 73 20 6c 69 |gment on| this li|
|00003a50| 6e 65 3f 0d 09 69 66 20 | 28 49 53 5f 4c 45 46 54 |ne?..if |(IS_LEFT|
|00003a60| 4d 4f 53 54 5f 52 55 4e | 28 73 74 79 6c 65 52 75 |MOST_RUN|(styleRu|
|00003a70| 6e 50 6f 73 69 74 69 6f | 6e 29 29 0d 09 7b 0d 09 |nPositio|n))..{..|
|00003a80| 09 2f 2f 20 63 61 6c 63 | 75 6c 61 74 65 20 74 68 |.// calc|ulate th|
|00003a90| 65 20 6c 69 6e 65 20 72 | 65 63 74 61 6e 67 6c 65 |e line r|ectangle|
|00003aa0| 20 28 74 68 65 20 72 65 | 63 74 61 6e 67 6c 65 20 | (the re|ctangle |
|00003ab0| 77 68 69 63 68 20 63 6f | 6d 70 6c 65 74 65 6c 79 |which co|mpletely|
|00003ac0| 20 65 6e 63 6c 6f 73 65 | 73 20 74 68 65 20 63 75 | enclose|s the cu|
|00003ad0| 72 72 65 6e 74 20 6c 69 | 6e 65 29 0d 09 09 63 64 |rrent li|ne)...cd|
|00003ae0| 2d 3e 6c 69 6e 65 52 65 | 63 74 2e 6c 65 66 74 20 |->lineRe|ct.left |
|00003af0| 3d 20 70 57 45 2d 3e 64 | 65 73 74 52 65 63 74 2e |= pWE->d|estRect.|
|00003b00| 6c 65 66 74 3b 0d 09 09 | 63 64 2d 3e 6c 69 6e 65 |left;...|cd->line|
|00003b10| 52 65 63 74 2e 72 69 67 | 68 74 20 3d 20 70 57 45 |Rect.rig|ht = pWE|
|00003b20| 2d 3e 64 65 73 74 52 65 | 63 74 2e 72 69 67 68 74 |->destRe|ct.right|
|00003b30| 3b 0d 09 09 63 64 2d 3e | 6c 69 6e 65 52 65 63 74 |;...cd->|lineRect|
|00003b40| 2e 74 6f 70 20 3d 20 70 | 57 45 2d 3e 64 65 73 74 |.top = p|WE->dest|
|00003b50| 52 65 63 74 2e 74 6f 70 | 20 2b 20 70 4c 69 6e 65 |Rect.top| + pLine|
|00003b60| 5b 30 5d 2e 6c 69 6e 65 | 4f 72 69 67 69 6e 3b 0d |[0].line|Origin;.|
|00003b70| 09 09 63 64 2d 3e 6c 69 | 6e 65 52 65 63 74 2e 62 |..cd->li|neRect.b|
|00003b80| 6f 74 74 6f 6d 20 3d 20 | 70 57 45 2d 3e 64 65 73 |ottom = |pWE->des|
|00003b90| 74 52 65 63 74 2e 74 6f | 70 20 2b 20 70 4c 69 6e |tRect.to|p + pLin|
|00003ba0| 65 5b 31 5d 2e 6c 69 6e | 65 4f 72 69 67 69 6e 3b |e[1].lin|eOrigin;|
|00003bb0| 0d 0d 09 09 2f 2f 20 63 | 61 6c 63 75 6c 61 74 65 |....// c|alculate|
|00003bc0| 20 74 68 65 20 76 69 73 | 69 62 6c 65 20 70 6f 72 | the vis|ible por|
|00003bd0| 74 69 6f 6e 20 6f 66 20 | 74 68 69 73 20 72 65 63 |tion of |this rec|
|00003be0| 74 61 6e 67 6c 65 0d 09 | 09 2f 2f 20 77 65 20 64 |tangle..|.// we d|
|00003bf0| 6f 20 74 68 69 73 20 62 | 79 20 69 6e 74 65 72 73 |o this b|y inters|
|00003c00| 65 63 74 69 6e 67 20 74 | 68 65 20 6c 69 6e 65 20 |ecting t|he line |
|00003c10| 72 65 63 74 61 6e 67 6c | 65 20 77 69 74 68 20 74 |rectangl|e with t|
|00003c20| 68 65 20 76 69 65 77 20 | 72 65 63 74 61 6e 67 6c |he view |rectangl|
|00003c30| 65 0d 23 69 66 20 41 43 | 43 45 53 53 4f 52 5f 43 |e.#if AC|CESSOR_C|
|00003c40| 41 4c 4c 53 5f 41 52 45 | 5f 46 55 4e 43 54 49 4f |ALLS_ARE|_FUNCTIO|
|00003c50| 4e 53 0d 09 09 47 65 74 | 52 65 67 69 6f 6e 42 6f |NS...Get|RegionBo|
|00003c60| 75 6e 64 73 28 26 28 2a | 70 57 45 2d 3e 76 69 65 |unds(&(*|pWE->vie|
|00003c70| 77 52 67 6e 29 2c 20 26 | 63 64 2d 3e 64 72 61 77 |wRgn), &|cd->draw|
|00003c80| 52 65 63 74 29 3b 0d 23 | 65 6c 73 65 0d 09 09 63 |Rect);.#|else...c|
|00003c90| 64 2d 3e 64 72 61 77 52 | 65 63 74 20 3d 20 28 2a |d->drawR|ect = (*|
|00003ca0| 70 57 45 2d 3e 76 69 65 | 77 52 67 6e 29 2d 3e 72 |pWE->vie|wRgn)->r|
|00003cb0| 67 6e 42 42 6f 78 3b 0d | 23 65 6e 64 69 66 0d 09 |gnBBox;.|#endif..|
|00003cc0| 09 53 65 63 74 52 65 63 | 74 28 26 63 64 2d 3e 6c |.SectRec|t(&cd->l|
|00003cd0| 69 6e 65 52 65 63 74 2c | 20 26 63 64 2d 3e 64 72 |ineRect,| &cd->dr|
|00003ce0| 61 77 52 65 63 74 2c 20 | 26 63 64 2d 3e 64 72 61 |awRect, |&cd->dra|
|00003cf0| 77 52 65 63 74 29 3b 0d | 0d 09 09 69 66 20 28 63 |wRect);.|...if (c|
|00003d00| 64 2d 3e 75 73 69 6e 67 | 4f 66 66 73 63 72 65 65 |d->using|Offscree|
|00003d10| 6e 29 0d 09 09 7b 0d 09 | 09 09 2f 2f 20 63 61 6c |n)...{..|..// cal|
|00003d20| 63 75 6c 61 74 65 20 74 | 68 65 20 62 6f 75 6e 64 |culate t|he bound|
|00003d30| 61 72 79 20 72 65 63 74 | 61 6e 67 6c 65 20 66 6f |ary rect|angle fo|
|00003d40| 72 20 74 68 65 20 6f 66 | 66 73 63 72 65 65 6e 20 |r the of|fscreen |
|00003d50| 62 75 66 66 65 72 0d 09 | 09 09 2f 2f 20 74 68 69 |buffer..|..// thi|
|00003d60| 73 20 69 73 20 73 69 6d | 70 6c 79 20 64 72 61 77 |s is sim|ply draw|
|00003d70| 52 65 63 74 20 63 6f 6e | 76 65 72 74 65 64 20 74 |Rect con|verted t|
|00003d80| 6f 20 67 6c 6f 62 61 6c | 20 63 6f 6f 72 64 69 6e |o global| coordin|
|00003d90| 61 74 65 73 0d 09 09 09 | 63 64 2d 3e 62 6f 75 6e |ates....|cd->boun|
|00003da0| 64 73 20 3d 20 63 64 2d | 3e 64 72 61 77 52 65 63 |ds = cd-|>drawRec|
|00003db0| 74 3b 0d 09 09 09 4c 6f | 63 61 6c 54 6f 47 6c 6f |t;....Lo|calToGlo|
|00003dc0| 62 61 6c 28 28 50 6f 69 | 6e 74 20 2a 29 20 26 63 |bal((Poi|nt *) &c|
|00003dd0| 64 2d 3e 62 6f 75 6e 64 | 73 2e 74 6f 70 29 3b 0d |d->bound|s.top);.|
|00003de0| 09 09 09 4c 6f 63 61 6c | 54 6f 47 6c 6f 62 61 6c |...Local|ToGlobal|
|00003df0| 28 28 50 6f 69 6e 74 20 | 2a 29 20 26 63 64 2d 3e |((Point |*) &cd->|
|00003e00| 62 6f 75 6e 64 73 2e 62 | 6f 74 74 6f 6d 29 3b 0d |bounds.b|ottom);.|
|00003e10| 0d 09 09 09 2f 2f 20 75 | 70 64 61 74 65 20 74 68 |....// u|pdate th|
|00003e20| 65 20 6f 66 66 73 63 72 | 65 65 6e 20 67 72 61 70 |e offscr|een grap|
|00003e30| 68 69 63 73 20 77 6f 72 | 6c 64 20 66 6f 72 20 74 |hics wor|ld for t|
|00003e40| 68 65 20 6e 65 77 20 62 | 6f 75 6e 64 73 20 28 74 |he new b|ounds (t|
|00003e50| 68 69 73 20 63 6f 75 6c | 64 20 66 61 69 6c 29 0d |his coul|d fail).|
|00003e60| 09 09 09 63 64 2d 3e 64 | 72 61 77 69 6e 67 4f 66 |...cd->d|rawingOf|
|00003e70| 66 73 63 72 65 65 6e 20 | 3d 20 66 61 6c 73 65 3b |fscreen |= false;|
|00003e80| 0d 09 09 09 69 66 20 28 | 21 20 28 55 70 64 61 74 |....if (|! (Updat|
|00003e90| 65 47 57 6f 72 6c 64 28 | 28 47 57 6f 72 6c 64 50 |eGWorld(|(GWorldP|
|00003ea0| 74 72 20 2a 29 20 26 70 | 57 45 2d 3e 6f 66 66 73 |tr *) &p|WE->offs|
|00003eb0| 63 72 65 65 6e 50 6f 72 | 74 2c 20 30 2c 20 26 63 |creenPor|t, 0, &c|
|00003ec0| 64 2d 3e 62 6f 75 6e 64 | 73 2c 20 6e 69 6c 2c 20 |d->bound|s, nil, |
|00003ed0| 6e 69 6c 2c 20 30 29 20 | 26 20 67 77 46 6c 61 67 |nil, 0) |& gwFlag|
|00003ee0| 45 72 72 29 29 0d 09 09 | 09 7b 0d 09 09 09 09 2f |Err))...|.{...../|
|00003ef0| 2f 20 4e 4f 54 45 3a 20 | 77 68 65 6e 20 72 75 6e |/ NOTE: |when run|
|00003f00| 6e 69 6e 67 20 6f 6e 20 | 61 20 36 38 30 30 30 20 |ning on |a 68000 |
|00003f10| 6d 61 63 68 69 6e 65 20 | 77 69 74 68 20 74 68 65 |machine |with the|
|00003f20| 20 6f 72 69 67 69 6e 61 | 6c 20 51 75 69 63 6b 64 | origina|l Quickd|
|00003f30| 72 61 77 2c 0d 09 09 09 | 09 2f 2f 20 61 20 47 57 |raw,....|.// a GW|
|00003f40| 6f 72 6c 64 20 69 73 20 | 6a 75 73 74 20 61 6e 20 |orld is |just an |
|00003f50| 65 78 74 65 6e 64 65 64 | 20 47 72 61 66 50 6f 72 |extended| GrafPor|
|00003f60| 74 2c 20 61 6e 64 20 47 | 65 74 47 57 6f 72 6c 64 |t, and G|etGWorld|
|00003f70| 50 69 78 4d 61 70 20 61 | 63 74 75 61 6c 6c 79 0d |PixMap a|ctually.|
|00003f80| 09 09 09 09 2f 2f 20 72 | 65 74 75 72 6e 73 20 61 |....// r|eturns a|
|00003f90| 20 68 61 6e 64 6c 65 20 | 74 6f 20 61 20 5f 63 6f | handle |to a _co|
|00003fa0| 70 79 5f 20 6f 66 20 74 | 68 65 20 47 72 61 66 50 |py_ of t|he GrafP|
|00003fb0| 6f 72 74 20 70 6f 72 74 | 42 69 74 73 20 28 61 20 |ort port|Bits (a |
|00003fc0| 42 69 74 4d 61 70 2c 20 | 6e 6f 74 20 61 20 50 69 |BitMap, |not a Pi|
|00003fd0| 78 4d 61 70 29 2e 0d 09 | 09 09 09 2f 2f 20 41 6e |xMap)...|...// An|
|00003fe0| 20 69 6d 70 6f 72 74 61 | 6e 74 20 73 69 64 65 2d | importa|nt side-|
|00003ff0| 65 66 66 65 63 74 20 6f | 66 20 74 68 69 73 20 69 |effect o|f this i|
|00004000| 73 20 74 68 61 74 20 77 | 68 65 6e 20 77 65 20 63 |s that w|hen we c|
|00004010| 61 6c 6c 20 53 65 74 4f | 72 69 67 69 6e 2c 0d 09 |all SetO|rigin,..|
|00004020| 09 09 09 2f 2f 20 6f 6e | 6c 79 20 74 68 65 20 6f |...// on|ly the o|
|00004030| 72 69 67 69 6e 61 6c 20 | 70 6f 72 74 42 69 74 73 |riginal |portBits|
|00004040| 20 69 73 20 6f 66 66 73 | 65 74 2c 20 6e 6f 74 20 | is offs|et, not |
|00004050| 74 68 65 20 63 6f 70 79 | 2e 0d 09 09 09 09 2f 2f |the copy|......//|
|00004060| 20 67 65 74 20 74 68 65 | 20 70 69 78 65 6c 20 6d | get the| pixel m|
|00004070| 61 70 20 61 73 73 6f 63 | 69 61 74 65 64 20 77 69 |ap assoc|iated wi|
|00004080| 74 68 20 74 68 65 20 6f | 66 66 73 63 72 65 65 6e |th the o|ffscreen|
|00004090| 20 67 72 61 70 68 69 63 | 73 20 77 6f 72 6c 64 0d | graphic|s world.|
|000040a0| 09 09 09 09 63 64 2d 3e | 6f 66 66 73 63 72 65 65 |....cd->|offscree|
|000040b0| 6e 50 69 78 65 6c 73 20 | 3d 20 47 65 74 47 57 6f |nPixels |= GetGWo|
|000040c0| 72 6c 64 50 69 78 4d 61 | 70 28 28 47 57 6f 72 6c |rldPixMa|p((GWorl|
|000040d0| 64 50 74 72 29 20 70 57 | 45 2d 3e 6f 66 66 73 63 |dPtr) pW|E->offsc|
|000040e0| 72 65 65 6e 50 6f 72 74 | 29 3b 0d 0d 09 09 09 09 |reenPort|);......|
|000040f0| 2f 2f 20 6c 6f 63 6b 20 | 69 74 20 64 6f 77 6e 0d |// lock |it down.|
|00004100| 09 09 09 09 69 66 20 28 | 4c 6f 63 6b 50 69 78 65 |....if (|LockPixe|
|00004110| 6c 73 28 63 64 2d 3e 6f | 66 66 73 63 72 65 65 6e |ls(cd->o|ffscreen|
|00004120| 50 69 78 65 6c 73 29 29 | 0d 09 09 09 09 7b 0d 09 |Pixels))|.....{..|
|00004130| 09 09 09 09 2f 2f 20 6f | 66 66 73 63 72 65 65 6e |....// o|ffscreen|
|00004140| 20 70 69 78 65 6c 20 62 | 75 66 66 65 72 20 61 6c | pixel b|uffer al|
|00004150| 6c 6f 63 61 74 69 6f 6e | 20 77 61 73 20 73 75 63 |location| was suc|
|00004160| 63 65 73 73 66 75 6c 0d | 09 09 09 09 09 63 64 2d |cessful.|.....cd-|
|00004170| 3e 64 72 61 77 69 6e 67 | 4f 66 66 73 63 72 65 65 |>drawing|Offscree|
|00004180| 6e 20 3d 20 74 72 75 65 | 3b 0d 0d 09 09 09 09 09 |n = true|;.......|
|00004190| 2f 2f 20 67 65 74 20 62 | 61 63 6b 67 72 6f 75 6e |// get b|ackgroun|
|000041a0| 64 20 63 6f 6c 6f 72 20 | 6f 66 20 6f 6e 73 63 72 |d color |of onscr|
|000041b0| 65 65 6e 20 70 6f 72 74 | 0d 09 09 09 09 09 47 65 |een port|......Ge|
|000041c0| 74 42 61 63 6b 43 6f 6c | 6f 72 28 26 72 67 62 54 |tBackCol|or(&rgbT|
|000041d0| 65 6d 70 31 29 3b 0d 0d | 09 09 09 09 09 2f 2f 20 |emp1);..|.....// |
|000041e0| 73 77 69 74 63 68 20 67 | 72 61 70 68 69 63 73 20 |switch g|raphics |
|000041f0| 77 6f 72 6c 64 0d 09 09 | 09 09 09 53 65 74 47 57 |world...|...SetGW|
|00004200| 6f 72 6c 64 28 28 47 57 | 6f 72 6c 64 50 74 72 29 |orld((GW|orldPtr)|
|00004210| 20 70 57 45 2d 3e 6f 66 | 66 73 63 72 65 65 6e 50 | pWE->of|fscreenP|
|00004220| 6f 72 74 2c 20 6e 69 6c | 29 3b 0d 0d 09 09 09 09 |ort, nil|);......|
|00004230| 09 2f 2f 20 73 79 6e 63 | 68 72 6f 6e 69 7a 65 20 |.// sync|hronize |
|00004240| 74 68 65 20 63 6f 6f 72 | 64 69 6e 61 74 65 20 73 |the coor|dinate s|
|00004250| 79 73 74 65 6d 20 6f 66 | 20 74 68 65 20 6f 66 66 |ystem of| the off|
|00004260| 73 63 72 65 65 6e 20 70 | 6f 72 74 20 77 69 74 68 |screen p|ort with|
|00004270| 20 74 68 61 74 20 6f 66 | 20 74 68 65 20 73 63 72 | that of| the scr|
|00004280| 65 65 6e 20 70 6f 72 74 | 0d 09 09 09 09 09 53 65 |een port|......Se|
|00004290| 74 4f 72 69 67 69 6e 28 | 63 64 2d 3e 64 72 61 77 |tOrigin(|cd->draw|
|000042a0| 52 65 63 74 2e 6c 65 66 | 74 2c 20 63 64 2d 3e 64 |Rect.lef|t, cd->d|
|000042b0| 72 61 77 52 65 63 74 2e | 74 6f 70 29 3b 0d 0d 09 |rawRect.|top);...|
|000042c0| 09 09 09 09 2f 2f 20 73 | 79 6e 63 68 72 6f 6e 69 |....// s|ynchroni|
|000042d0| 7a 65 20 74 68 65 20 62 | 61 63 6b 67 72 6f 75 6e |ze the b|ackgroun|
|000042e0| 64 20 63 6f 6c 6f 72 0d | 09 09 09 09 09 52 47 42 |d color.|.....RGB|
|000042f0| 42 61 63 6b 43 6f 6c 6f | 72 28 26 72 67 62 54 65 |BackColo|r(&rgbTe|
|00004300| 6d 70 31 29 3b 0d 0d 09 | 09 09 09 09 2f 2f 20 72 |mp1);...|....// r|
|00004310| 65 73 65 74 20 74 68 65 | 20 6f 66 66 73 63 72 65 |eset the| offscre|
|00004320| 65 6e 20 63 6c 69 70 20 | 72 65 67 69 6f 6e 0d 09 |en clip |region..|
|00004330| 09 09 09 09 43 6c 69 70 | 52 65 63 74 28 26 63 64 |....Clip|Rect(&cd|
|00004340| 2d 3e 64 72 61 77 52 65 | 63 74 29 3b 0d 09 09 09 |->drawRe|ct);....|
|00004350| 09 7d 0d 09 09 09 7d 20 | 2f 2f 20 69 66 20 70 69 |.}....} |// if pi|
|00004360| 78 65 6c 20 62 75 66 66 | 65 72 20 61 6c 6c 6f 63 |xel buff|er alloc|
|00004370| 61 74 69 6f 6e 20 77 61 | 73 20 73 75 63 63 65 73 |ation wa|s succes|
|00004380| 73 66 75 6c 0d 09 09 7d | 20 2f 2f 20 69 66 20 75 |sful...}| // if u|
|00004390| 73 69 6e 67 4f 66 66 73 | 63 72 65 65 6e 0d 0d 09 |singOffs|creen...|
|000043a0| 09 2f 2f 20 69 66 20 64 | 6f 45 72 61 73 65 20 69 |.// if d|oErase i|
|000043b0| 73 20 74 72 75 65 2c 20 | 65 72 61 73 65 20 74 68 |s true, |erase th|
|000043c0| 65 20 64 72 61 77 61 62 | 6c 65 20 61 72 65 61 20 |e drawab|le area |
|000043d0| 62 65 66 6f 72 65 20 64 | 72 61 77 69 6e 67 20 74 |before d|rawing t|
|000043e0| 65 78 74 0d 09 09 69 66 | 20 28 63 64 2d 3e 64 6f |ext...if| (cd->do|
|000043f0| 45 72 61 73 65 29 0d 09 | 09 7b 0d 09 09 09 43 61 |Erase)..|.{....Ca|
|00004400| 6c 6c 57 45 45 72 61 73 | 65 50 72 6f 63 28 26 63 |llWEEras|eProc(&c|
|00004410| 64 2d 3e 64 72 61 77 52 | 65 63 74 2c 20 68 57 45 |d->drawR|ect, hWE|
|00004420| 2c 20 70 57 45 2d 3e 65 | 72 61 73 65 48 6f 6f 6b |, pWE->e|raseHook|
|00004430| 29 3b 0d 09 09 7d 0d 0d | 09 09 2f 2f 20 70 6f 73 |);...}..|..// pos|
|00004440| 69 74 69 6f 6e 20 74 68 | 65 20 70 65 6e 0d 09 09 |ition th|e pen...|
|00004450| 4d 6f 76 65 54 6f 28 63 | 64 2d 3e 6c 69 6e 65 52 |MoveTo(c|d->lineR|
|00004460| 65 63 74 2e 6c 65 66 74 | 20 2b 20 5f 57 45 43 61 |ect.left| + _WECa|
|00004470| 6c 63 50 65 6e 49 6e 64 | 65 6e 74 28 70 4c 69 6e |lcPenInd|ent(pLin|
|00004480| 65 2c 20 70 57 45 2d 3e | 61 6c 69 67 6e 6d 65 6e |e, pWE->|alignmen|
|00004490| 74 2c 20 70 57 45 2d 3e | 64 69 72 65 63 74 69 6f |t, pWE->|directio|
|000044a0| 6e 29 2c 20 63 64 2d 3e | 6c 69 6e 65 52 65 63 74 |n), cd->|lineRect|
|000044b0| 2e 74 6f 70 20 2b 20 70 | 4c 69 6e 65 2d 3e 6c 69 |.top + p|Line->li|
|000044c0| 6e 65 41 73 63 65 6e 74 | 29 3b 0d 09 7d 20 2f 2f |neAscent|);..} //|
|000044d0| 20 69 66 20 66 69 72 73 | 74 20 73 65 67 6d 65 6e | if firs|t segmen|
|000044e0| 74 20 6f 6e 20 6c 69 6e | 65 0d 0d 09 2f 2f 20 69 |t on lin|e...// i|
|000044f0| 66 20 64 72 61 77 69 6e | 67 4f 66 66 73 63 72 65 |f drawin|gOffscre|
|00004500| 65 6e 2c 20 73 77 69 74 | 63 68 20 74 68 65 50 6f |en, swit|ch thePo|
|00004510| 72 74 20 74 6f 20 74 68 | 65 20 6f 66 66 73 63 72 |rt to th|e offscr|
|00004520| 65 65 6e 20 70 6f 72 74 | 0d 09 2f 2f 20 61 6e 64 |een port|..// and|
|00004530| 20 73 79 6e 63 68 72 6f | 6e 69 7a 65 20 74 65 78 | synchro|nize tex|
|00004540| 74 20 61 74 74 72 69 62 | 75 74 65 73 0d 09 69 66 |t attrib|utes..if|
|00004550| 20 28 63 64 2d 3e 64 72 | 61 77 69 6e 67 4f 66 66 | (cd->dr|awingOff|
|00004560| 73 63 72 65 65 6e 29 0d | 09 7b 0d 09 09 53 65 74 |screen).|.{...Set|
|00004570| 50 6f 72 74 28 70 57 45 | 2d 3e 6f 66 66 73 63 72 |Port(pWE|->offscr|
|00004580| 65 65 6e 50 6f 72 74 29 | 3b 0d 09 09 54 65 78 74 |eenPort)|;...Text|
|00004590| 46 6f 6e 74 28 70 41 74 | 74 72 73 2d 3e 72 75 6e |Font(pAt|trs->run|
|000045a0| 53 74 79 6c 65 2e 74 73 | 46 6f 6e 74 29 3b 0d 09 |Style.ts|Font);..|
|000045b0| 09 54 65 78 74 46 61 63 | 65 28 70 41 74 74 72 73 |.TextFac|e(pAttrs|
|000045c0| 2d 3e 72 75 6e 53 74 79 | 6c 65 2e 74 73 46 61 63 |->runSty|le.tsFac|
|000045d0| 65 29 3b 0d 09 09 54 65 | 78 74 53 69 7a 65 28 70 |e);...Te|xtSize(p|
|000045e0| 41 74 74 72 73 2d 3e 72 | 75 6e 53 74 79 6c 65 2e |Attrs->r|unStyle.|
|000045f0| 74 73 53 69 7a 65 29 3b | 0d 09 7d 20 2f 2f 20 69 |tsSize);|..} // i|
|00004600| 66 20 64 72 61 77 69 6e | 67 4f 66 66 73 63 72 65 |f drawin|gOffscre|
|00004610| 65 6e 0d 0d 09 2f 2f 20 | 67 65 74 20 68 6f 72 69 |en...// |get hori|
|00004620| 7a 6f 6e 74 61 6c 20 63 | 6f 6f 72 64 69 6e 61 74 |zontal c|oordinat|
|00004630| 65 20 6f 66 20 74 68 65 | 20 70 65 6e 20 62 65 66 |e of the| pen bef|
|00004640| 6f 72 65 20 64 72 61 77 | 69 6e 67 20 74 68 65 20 |ore draw|ing the |
|00004650| 73 65 67 6d 65 6e 74 0d | 09 47 65 74 50 65 6e 28 |segment.|.GetPen(|
|00004660| 28 50 6f 69 6e 74 20 2a | 29 20 26 73 65 67 6d 65 |(Point *|) &segme|
|00004670| 6e 74 52 65 63 74 2e 74 | 6f 70 29 3b 0d 0d 09 2f |ntRect.t|op);.../|
|00004680| 2f 20 73 65 74 20 74 68 | 65 20 66 6f 72 65 67 72 |/ set th|e foregr|
|00004690| 6f 75 6e 64 20 63 6f 6c | 6f 72 0d 09 69 66 20 28 |ound col|or..if (|
|000046a0| 63 64 2d 3e 75 73 69 6e | 67 43 6f 6c 6f 72 29 0d |cd->usin|gColor).|
|000046b0| 09 7b 0d 09 09 52 47 42 | 46 6f 72 65 43 6f 6c 6f |.{...RGB|ForeColo|
|000046c0| 72 28 26 70 41 74 74 72 | 73 2d 3e 72 75 6e 53 74 |r(&pAttr|s->runSt|
|000046d0| 79 6c 65 2e 74 73 43 6f | 6c 6f 72 29 3b 0d 09 7d |yle.tsCo|lor);..}|
|000046e0| 0d 0d 09 73 6c 6f 70 20 | 3d 20 30 3b 0d 0d 09 2f |...slop |= 0;.../|
|000046f0| 2f 20 63 61 6c 63 75 6c | 61 74 65 20 74 68 65 20 |/ calcul|ate the |
|00004700| 22 73 6c 6f 70 22 20 28 | 65 78 74 72 61 20 73 70 |"slop" (|extra sp|
|00004710| 61 63 65 29 20 66 6f 72 | 20 74 68 69 73 20 74 65 |ace) for| this te|
|00004720| 78 74 20 73 65 67 6d 65 | 6e 74 20 28 6a 75 73 74 |xt segme|nt (just|
|00004730| 69 66 69 65 64 20 74 65 | 78 74 20 6f 6e 6c 79 29 |ified te|xt only)|
|00004740| 0d 09 69 66 20 28 70 57 | 45 2d 3e 61 6c 69 67 6e |..if (pW|E->align|
|00004750| 6d 65 6e 74 20 3d 3d 20 | 77 65 4a 75 73 74 69 66 |ment == |weJustif|
|00004760| 79 29 0d 09 7b 0d 23 69 | 66 20 57 41 53 54 45 5f |y)..{.#i|f WASTE_|
|00004770| 53 43 41 4c 45 0d 09 09 | 63 6f 6e 73 74 20 50 6f |SCALE...|const Po|
|00004780| 69 6e 74 20 73 63 61 6c | 65 4e 75 6d 65 72 20 3d |int scal|eNumer =|
|00004790| 20 70 57 45 2d 3e 73 63 | 61 6c 65 4e 75 6d 65 72 | pWE->sc|aleNumer|
|000047a0| 3b 0d 09 09 63 6f 6e 73 | 74 20 50 6f 69 6e 74 20 |;...cons|t Point |
|000047b0| 73 63 61 6c 65 44 65 6e | 6f 6d 20 3d 20 70 57 45 |scaleDen|om = pWE|
|000047c0| 2d 3e 73 63 61 6c 65 44 | 65 6e 6f 6d 3b 0d 23 65 |->scaleD|enom;.#e|
|000047d0| 6c 73 65 0d 09 09 63 6f | 6e 73 74 20 50 6f 69 6e |lse...co|nst Poin|
|000047e0| 74 20 73 63 61 6c 65 4e | 75 6d 65 72 20 3d 20 6b |t scaleN|umer = k|
|000047f0| 4f 6e 65 54 6f 4f 6e 65 | 53 63 61 6c 69 6e 67 3b |OneToOne|Scaling;|
|00004800| 0d 09 09 63 6f 6e 73 74 | 20 50 6f 69 6e 74 20 73 |...const| Point s|
|00004810| 63 61 6c 65 44 65 6e 6f | 6d 20 3d 20 6b 4f 6e 65 |caleDeno|m = kOne|
|00004820| 54 6f 4f 6e 65 53 63 61 | 6c 69 6e 67 3b 0d 23 65 |ToOneSca|ling;.#e|
|00004830| 6e 64 69 66 0d 0d 09 09 | 2f 2f 20 69 66 20 74 68 |ndif....|// if th|
|00004840| 69 73 20 69 73 20 74 68 | 65 20 6c 61 73 74 20 73 |is is th|e last s|
|00004850| 65 67 6d 65 6e 74 20 6f | 6e 20 74 68 65 20 6c 69 |egment o|n the li|
|00004860| 6e 65 2c 20 73 74 72 69 | 70 20 74 72 61 69 6c 69 |ne, stri|p traili|
|00004870| 6e 67 20 73 70 61 63 65 | 73 0d 09 09 69 66 20 28 |ng space|s...if (|
|00004880| 49 53 5f 52 49 47 48 54 | 4d 4f 53 54 5f 52 55 4e |IS_RIGHT|MOST_RUN|
|00004890| 28 73 74 79 6c 65 52 75 | 6e 50 6f 73 69 74 69 6f |(styleRu|nPositio|
|000048a0| 6e 29 29 0d 09 09 7b 0d | 09 09 09 73 65 67 6d 65 |n))...{.|...segme|
|000048b0| 6e 74 4c 65 6e 67 74 68 | 20 3d 20 56 69 73 69 62 |ntLength| = Visib|
|000048c0| 6c 65 4c 65 6e 67 74 68 | 28 70 53 65 67 6d 65 6e |leLength|(pSegmen|
|000048d0| 74 2c 20 73 65 67 6d 65 | 6e 74 4c 65 6e 67 74 68 |t, segme|ntLength|
|000048e0| 29 3b 0d 09 09 7d 0d 0d | 09 09 2f 2f 20 63 61 6c |);...}..|..// cal|
|000048f0| 63 75 6c 61 74 65 20 68 | 6f 77 20 6d 75 63 68 20 |culate h|ow much |
|00004900| 65 78 74 72 61 20 73 70 | 61 63 65 20 69 73 20 74 |extra sp|ace is t|
|00004910| 6f 20 62 65 20 61 70 70 | 6c 69 65 64 20 74 6f 20 |o be app|lied to |
|00004920| 74 68 69 73 20 74 65 78 | 74 20 73 65 67 6d 65 6e |this tex|t segmen|
|00004930| 74 0d 09 09 73 6c 6f 70 | 20 3d 20 46 69 78 4d 75 |t...slop| = FixMu|
|00004940| 6c 28 50 6f 72 74 69 6f | 6e 4c 69 6e 65 28 70 53 |l(Portio|nLine(pS|
|00004950| 65 67 6d 65 6e 74 2c 20 | 73 65 67 6d 65 6e 74 4c |egment, |segmentL|
|00004960| 65 6e 67 74 68 2c 20 73 | 74 79 6c 65 52 75 6e 50 |ength, s|tyleRunP|
|00004970| 6f 73 69 74 69 6f 6e 2c | 0d 09 09 09 09 73 63 61 |osition,|.....sca|
|00004980| 6c 65 4e 75 6d 65 72 2c | 20 73 63 61 6c 65 44 65 |leNumer,| scaleDe|
|00004990| 6e 6f 6d 29 2c 20 70 4c | 69 6e 65 2d 3e 6c 69 6e |nom), pL|ine->lin|
|000049a0| 65 4a 75 73 74 41 6d 6f | 75 6e 74 29 3b 0d 0d 09 |eJustAmo|unt);...|
|000049b0| 7d 20 2f 2f 20 69 66 20 | 28 61 6c 69 67 6e 6d 65 |} // if |(alignme|
|000049c0| 6e 74 20 3d 3d 20 77 65 | 4a 75 73 74 69 66 79 29 |nt == we|Justify)|
|000049d0| 0d 0d 23 69 66 20 57 41 | 53 54 45 5f 53 54 59 4c |..#if WA|STE_STYL|
|000049e0| 45 52 53 0d 09 7b 0d 09 | 09 42 6f 6f 6c 65 61 6e |ERS..{..|.Boolean|
|000049f0| 20 68 61 6e 64 6c 65 64 | 20 3d 20 66 61 6c 73 65 | handled| = false|
|00004a00| 3b 0d 09 09 69 66 20 28 | 70 41 74 74 72 73 2d 3e |;...if (|pAttrs->|
|00004a10| 72 75 6e 53 74 79 6c 65 | 2e 74 73 53 74 79 6c 65 |runStyle|.tsStyle|
|00004a20| 72 20 21 3d 20 6e 69 6c | 29 0d 09 09 7b 0d 09 09 |r != nil|)...{...|
|00004a30| 09 68 61 6e 64 6c 65 64 | 20 3d 20 5f 57 45 44 72 |.handled| = _WEDr|
|00004a40| 61 77 53 74 79 6c 65 72 | 28 70 53 65 67 6d 65 6e |awStyler|(pSegmen|
|00004a50| 74 2c 20 73 65 67 6d 65 | 6e 74 4c 65 6e 67 74 68 |t, segme|ntLength|
|00004a60| 2c 20 73 6c 6f 70 2c 20 | 73 74 79 6c 65 52 75 6e |, slop, |styleRun|
|00004a70| 50 6f 73 69 74 69 6f 6e | 2c 20 70 41 74 74 72 73 |Position|, pAttrs|
|00004a80| 2d 3e 72 75 6e 53 74 79 | 6c 65 2e 74 73 53 74 79 |->runSty|le.tsSty|
|00004a90| 6c 65 72 29 3b 0d 09 09 | 7d 0d 0d 09 09 69 66 20 |ler);...|}....if |
|00004aa0| 28 21 68 61 6e 64 6c 65 | 64 29 0d 09 09 7b 0d 23 |(!handle|d)...{.#|
|00004ab0| 65 6e 64 69 66 0d 23 69 | 66 20 57 41 53 54 45 5f |endif.#i|f WASTE_|
|00004ac0| 4f 42 4a 45 43 54 53 0d | 09 09 09 69 66 20 28 70 |OBJECTS.|...if (p|
|00004ad0| 41 74 74 72 73 2d 3e 72 | 75 6e 53 74 79 6c 65 2e |Attrs->r|unStyle.|
|00004ae0| 74 73 4f 62 6a 65 63 74 | 20 21 3d 20 6e 69 6c 29 |tsObject| != nil)|
|00004af0| 0d 09 09 09 7b 0d 09 09 | 09 09 5f 57 45 44 72 61 |....{...|.._WEDra|
|00004b00| 77 4f 62 6a 65 63 74 28 | 70 41 74 74 72 73 2d 3e |wObject(|pAttrs->|
|00004b10| 72 75 6e 53 74 79 6c 65 | 2e 74 73 4f 62 6a 65 63 |runStyle|.tsObjec|
|00004b20| 74 29 3b 0d 09 09 09 7d | 0d 09 09 09 65 6c 73 65 |t);....}|....else|
|00004b30| 0d 23 65 6e 64 69 66 0d | 09 09 09 7b 0d 09 09 09 |.#endif.|...{....|
|00004b40| 09 2f 2f 20 64 72 61 77 | 20 74 68 65 20 73 65 67 |.// draw| the seg|
|00004b50| 6d 65 6e 74 0d 09 09 09 | 09 43 61 6c 6c 57 45 44 |ment....|.CallWED|
|00004b60| 72 61 77 54 65 78 74 50 | 72 6f 63 28 70 53 65 67 |rawTextP|roc(pSeg|
|00004b70| 6d 65 6e 74 2c 20 73 65 | 67 6d 65 6e 74 4c 65 6e |ment, se|gmentLen|
|00004b80| 67 74 68 2c 20 73 6c 6f | 70 2c 20 73 74 79 6c 65 |gth, slo|p, style|
|00004b90| 52 75 6e 50 6f 73 69 74 | 69 6f 6e 2c 20 68 57 45 |RunPosit|ion, hWE|
|00004ba0| 2c 20 70 57 45 2d 3e 64 | 72 61 77 54 65 78 74 48 |, pWE->d|rawTextH|
|00004bb0| 6f 6f 6b 29 3b 0d 09 09 | 09 7d 0d 23 69 66 20 57 |ook);...|.}.#if W|
|00004bc0| 41 53 54 45 5f 53 54 59 | 4c 45 52 53 0d 09 09 7d |ASTE_STY|LERS...}|
|00004bd0| 0d 09 7d 0d 23 65 6e 64 | 69 66 0d 0d 09 2f 2f 20 |..}.#end|if...// |
|00004be0| 67 65 74 20 68 6f 72 69 | 7a 6f 6e 74 61 6c 20 63 |get hori|zontal c|
|00004bf0| 6f 6f 72 64 69 6e 61 74 | 65 20 6f 66 20 74 68 65 |oordinat|e of the|
|00004c00| 20 70 65 6e 20 61 66 74 | 65 72 20 64 72 61 77 69 | pen aft|er drawi|
|00004c10| 6e 67 20 74 68 65 20 73 | 65 67 6d 65 6e 74 0d 09 |ng the s|egment..|
|00004c20| 47 65 74 50 65 6e 28 28 | 50 6f 69 6e 74 20 2a 29 |GetPen((|Point *)|
|00004c30| 20 26 73 65 67 6d 65 6e | 74 52 65 63 74 2e 62 6f | &segmen|tRect.bo|
|00004c40| 74 74 6f 6d 29 3b 0d 09 | 73 65 67 6d 65 6e 74 52 |ttom);..|segmentR|
|00004c50| 65 63 74 2e 62 6f 74 74 | 6f 6d 20 3d 20 63 64 2d |ect.bott|om = cd-|
|00004c60| 3e 6c 69 6e 65 52 65 63 | 74 2e 62 6f 74 74 6f 6d |>lineRec|t.bottom|
|00004c70| 3b 0d 0d 09 2f 2f 20 69 | 66 20 74 68 69 73 20 73 |;...// i|f this s|
|00004c80| 65 67 6d 65 6e 74 20 69 | 73 20 69 6e 20 74 68 65 |egment i|s in the|
|00004c90| 20 54 53 4d 20 61 72 65 | 61 2c 20 75 6e 64 65 72 | TSM are|a, under|
|00004ca0| 6c 69 6e 65 20 69 74 20 | 69 6e 20 74 68 65 20 61 |line it |in the a|
|00004cb0| 70 70 72 6f 70 72 69 61 | 74 65 20 77 61 79 0d 09 |ppropria|te way..|
|00004cc0| 69 66 20 28 42 54 53 54 | 28 70 41 74 74 72 73 2d |if (BTST|(pAttrs-|
|00004cd0| 3e 72 75 6e 53 74 79 6c | 65 2e 74 73 46 6c 61 67 |>runStyl|e.tsFlag|
|00004ce0| 73 2c 20 74 73 54 53 4d | 48 69 6c 69 74 65 29 29 |s, tsTSM|Hilite))|
|00004cf0| 0d 09 7b 0d 09 09 5f 57 | 45 44 72 61 77 54 53 4d |..{..._W|EDrawTSM|
|00004d00| 48 69 6c 69 74 65 28 26 | 73 65 67 6d 65 6e 74 52 |Hilite(&|segmentR|
|00004d10| 65 63 74 2c 20 70 41 74 | 74 72 73 2d 3e 72 75 6e |ect, pAt|trs->run|
|00004d20| 53 74 79 6c 65 2e 74 73 | 46 6c 61 67 73 29 3b 0d |Style.ts|Flags);.|
|00004d30| 09 7d 0d 0d 09 69 66 20 | 28 63 64 2d 3e 64 72 61 |.}...if |(cd->dra|
|00004d40| 77 69 6e 67 4f 66 66 73 | 63 72 65 65 6e 29 0d 09 |wingOffs|creen)..|
|00004d50| 7b 0d 09 09 69 66 20 28 | 49 53 5f 52 49 47 48 54 |{...if (|IS_RIGHT|
|00004d60| 4d 4f 53 54 5f 52 55 4e | 28 73 74 79 6c 65 52 75 |MOST_RUN|(styleRu|
|00004d70| 6e 50 6f 73 69 74 69 6f | 6e 29 29 0d 09 09 7b 0d |nPositio|n))...{.|
|00004d80| 09 09 09 2f 2f 20 61 66 | 74 65 72 20 64 72 61 77 |...// af|ter draw|
|00004d90| 69 6e 67 20 6f 66 66 73 | 63 72 65 65 6e 20 74 68 |ing offs|creen th|
|00004da0| 65 20 6c 61 73 74 20 73 | 65 67 6d 65 6e 74 2c 0d |e last s|egment,.|
|00004db0| 09 09 09 2f 2f 20 70 72 | 65 70 61 72 65 20 74 6f |...// pr|epare to|
|00004dc0| 20 63 6f 70 79 20 74 68 | 65 20 6f 66 66 73 63 72 | copy th|e offscr|
|00004dd0| 65 65 6e 20 62 75 66 66 | 65 72 20 74 6f 20 76 69 |een buff|er to vi|
|00004de0| 64 65 6f 20 52 41 4d 0d | 0d 09 09 09 2f 2f 20 66 |deo RAM.|....// f|
|00004df0| 69 72 73 74 20 73 65 74 | 20 74 68 65 20 67 72 61 |irst set| the gra|
|00004e00| 70 68 69 63 73 20 77 6f | 72 6c 64 20 74 6f 20 74 |phics wo|rld to t|
|00004e10| 68 65 20 73 63 72 65 65 | 6e 20 70 6f 72 74 0d 09 |he scree|n port..|
|00004e20| 09 09 53 65 74 47 57 6f | 72 6c 64 28 28 43 47 72 |..SetGWo|rld((CGr|
|00004e30| 61 66 50 74 72 29 20 63 | 64 2d 3e 73 63 72 65 65 |afPtr) c|d->scree|
|00004e40| 6e 50 6f 72 74 2c 20 63 | 64 2d 3e 73 63 72 65 65 |nPort, c|d->scree|
|00004e50| 6e 44 65 76 69 63 65 29 | 3b 0d 0d 09 09 09 2f 2f |nDevice)|;.....//|
|00004e60| 20 62 65 66 6f 72 65 20 | 63 61 6c 6c 69 6e 67 20 | before |calling |
|00004e70| 43 6f 70 79 42 69 74 73 | 2c 20 73 65 74 20 74 68 |CopyBits|, set th|
|00004e80| 65 20 66 6f 72 65 67 72 | 6f 75 6e 64 20 63 6f 6c |e foregr|ound col|
|00004e90| 6f 72 20 74 6f 20 62 6c | 61 63 6b 0d 09 09 09 2f |or to bl|ack..../|
|00004ea0| 2f 20 61 6e 64 20 74 68 | 65 20 62 61 63 6b 67 72 |/ and th|e backgr|
|00004eb0| 6f 75 6e 64 20 74 6f 20 | 77 68 69 74 65 20 74 6f |ound to |white to|
|00004ec0| 20 61 76 6f 69 64 20 63 | 6f 6c 6f 72 69 7a 61 74 | avoid c|olorizat|
|00004ed0| 69 6f 6e 0d 09 09 09 69 | 66 20 28 63 64 2d 3e 75 |ion....i|f (cd->u|
|00004ee0| 73 69 6e 67 43 6f 6c 6f | 72 29 0d 09 09 09 7b 0d |singColo|r)....{.|
|00004ef0| 09 09 09 09 47 65 74 42 | 61 63 6b 43 6f 6c 6f 72 |....GetB|ackColor|
|00004f00| 28 26 72 67 62 54 65 6d | 70 31 29 3b 0d 09 09 09 |(&rgbTem|p1);....|
|00004f10| 09 72 67 62 54 65 6d 70 | 32 2e 72 65 64 20 3d 20 |.rgbTemp|2.red = |
|00004f20| 30 78 46 46 46 46 3b 0d | 09 09 09 09 72 67 62 54 |0xFFFF;.|....rgbT|
|00004f30| 65 6d 70 32 2e 67 72 65 | 65 6e 20 3d 20 30 78 46 |emp2.gre|en = 0xF|
|00004f40| 46 46 46 3b 0d 09 09 09 | 09 72 67 62 54 65 6d 70 |FFF;....|.rgbTemp|
|00004f50| 32 2e 62 6c 75 65 20 3d | 20 30 78 46 46 46 46 3b |2.blue =| 0xFFFF;|
|00004f60| 0d 09 09 09 09 52 47 42 | 42 61 63 6b 43 6f 6c 6f |.....RGB|BackColo|
|00004f70| 72 28 26 72 67 62 54 65 | 6d 70 32 29 3b 0d 09 09 |r(&rgbTe|mp2);...|
|00004f80| 09 09 72 67 62 54 65 6d | 70 32 2e 72 65 64 20 3d |..rgbTem|p2.red =|
|00004f90| 20 30 3b 0d 09 09 09 09 | 72 67 62 54 65 6d 70 32 | 0;.....|rgbTemp2|
|00004fa0| 2e 67 72 65 65 6e 20 3d | 20 30 3b 0d 09 09 09 09 |.green =| 0;.....|
|00004fb0| 72 67 62 54 65 6d 70 32 | 2e 62 6c 75 65 20 3d 20 |rgbTemp2|.blue = |
|00004fc0| 30 3b 0d 09 09 09 09 52 | 47 42 46 6f 72 65 43 6f |0;.....R|GBForeCo|
|00004fd0| 6c 6f 72 28 26 72 67 62 | 54 65 6d 70 32 29 3b 0d |lor(&rgb|Temp2);.|
|00004fe0| 09 09 09 7d 0d 0d 09 09 | 09 2f 2f 20 63 6f 70 79 |...}....|.// copy|
|00004ff0| 20 74 68 65 20 6f 66 66 | 73 63 72 65 65 6e 20 69 | the off|screen i|
|00005000| 6d 61 67 65 20 6f 66 20 | 74 68 65 20 5b 76 69 73 |mage of |the [vis|
|00005010| 69 62 6c 65 20 70 6f 72 | 74 69 6f 6e 20 6f 66 20 |ible por|tion of |
|00005020| 74 68 65 5d 20 6c 69 6e | 65 20 74 6f 20 74 68 65 |the] lin|e to the|
|00005030| 20 73 63 72 65 65 6e 0d | 09 09 09 43 6f 70 79 42 | screen.|...CopyB|
|00005040| 69 74 73 28 5f 57 45 47 | 65 74 50 6f 72 74 42 69 |its(_WEG|etPortBi|
|00005050| 74 73 28 70 57 45 2d 3e | 6f 66 66 73 63 72 65 65 |ts(pWE->|offscree|
|00005060| 6e 50 6f 72 74 29 2c 20 | 5f 57 45 47 65 74 50 6f |nPort), |_WEGetPo|
|00005070| 72 74 42 69 74 73 28 63 | 64 2d 3e 73 63 72 65 65 |rtBits(c|d->scree|
|00005080| 6e 50 6f 72 74 29 2c 0d | 09 09 09 09 09 20 26 63 |nPort),.|..... &c|
|00005090| 64 2d 3e 64 72 61 77 52 | 65 63 74 2c 20 26 63 64 |d->drawR|ect, &cd|
|000050a0| 2d 3e 64 72 61 77 52 65 | 63 74 2c 20 73 72 63 43 |->drawRe|ct, srcC|
|000050b0| 6f 70 79 2c 20 6e 69 6c | 29 3b 0d 0d 09 09 09 2f |opy, nil|);...../|
|000050c0| 2f 20 72 65 73 74 6f 72 | 65 20 74 68 65 20 6f 72 |/ restor|e the or|
|000050d0| 69 67 69 6e 61 6c 20 62 | 61 63 6b 67 72 6f 75 6e |iginal b|ackgroun|
|000050e0| 64 20 63 6f 6c 6f 72 20 | 69 6e 20 74 68 65 20 6f |d color |in the o|
|000050f0| 6e 73 63 72 65 65 6e 20 | 70 6f 72 74 0d 09 09 09 |nscreen |port....|
|00005100| 69 66 20 28 63 64 2d 3e | 75 73 69 6e 67 43 6f 6c |if (cd->|usingCol|
|00005110| 6f 72 29 0d 09 09 09 7b | 0d 09 09 09 09 52 47 42 |or)....{|.....RGB|
|00005120| 42 61 63 6b 43 6f 6c 6f | 72 28 26 72 67 62 54 65 |BackColo|r(&rgbTe|
|00005130| 6d 70 31 29 3b 0d 09 09 | 09 7d 0d 0d 09 09 09 2f |mp1);...|.}...../|
|00005140| 2f 20 72 65 73 74 6f 72 | 65 20 74 68 65 20 6f 72 |/ restor|e the or|
|00005150| 69 67 69 6e 61 6c 20 6f | 66 66 73 63 72 65 65 6e |iginal o|ffscreen|
|00005160| 20 63 6f 6f 72 64 69 6e | 61 74 65 20 73 79 73 74 | coordin|ate syst|
|00005170| 65 6d 20 61 6e 64 20 75 | 6e 6c 6f 63 6b 20 74 68 |em and u|nlock th|
|00005180| 65 20 70 69 78 65 6c 20 | 69 6d 61 67 65 0d 09 09 |e pixel |image...|
|00005190| 09 53 65 74 50 6f 72 74 | 28 70 57 45 2d 3e 6f 66 |.SetPort|(pWE->of|
|000051a0| 66 73 63 72 65 65 6e 50 | 6f 72 74 29 3b 0d 09 09 |fscreenP|ort);...|
|000051b0| 09 53 65 74 4f 72 69 67 | 69 6e 28 30 2c 20 30 29 |.SetOrig|in(0, 0)|
|000051c0| 3b 0d 09 09 09 69 66 20 | 28 63 64 2d 3e 75 73 69 |;....if |(cd->usi|
|000051d0| 6e 67 43 6f 6c 6f 72 29 | 0d 09 09 09 7b 0d 09 09 |ngColor)|....{...|
|000051e0| 09 09 52 47 42 46 6f 72 | 65 43 6f 6c 6f 72 28 26 |..RGBFor|eColor(&|
|000051f0| 72 67 62 54 65 6d 70 32 | 29 3b 0d 09 09 09 7d 0d |rgbTemp2|);....}.|
|00005200| 09 09 09 55 6e 6c 6f 63 | 6b 50 69 78 65 6c 73 28 |...Unloc|kPixels(|
|00005210| 63 64 2d 3e 6f 66 66 73 | 63 72 65 65 6e 50 69 78 |cd->offs|creenPix|
|00005220| 65 6c 73 29 3b 0d 0d 09 | 09 7d 20 2f 2f 20 69 66 |els);...|.} // if|
|00005230| 20 6c 61 73 74 20 73 65 | 67 6d 65 6e 74 0d 0d 09 | last se|gment...|
|00005240| 09 2f 2f 20 72 65 73 74 | 6f 72 65 20 74 68 65 20 |.// rest|ore the |
|00005250| 73 63 72 65 65 6e 20 70 | 6f 72 74 20 66 6f 72 20 |screen p|ort for |
|00005260| 5f 57 45 53 65 67 6d 65 | 6e 74 4c 6f 6f 70 0d 09 |_WESegme|ntLoop..|
|00005270| 09 53 65 74 50 6f 72 74 | 28 63 64 2d 3e 73 63 72 |.SetPort|(cd->scr|
|00005280| 65 65 6e 50 6f 72 74 29 | 3b 0d 09 7d 20 2f 2f 20 |eenPort)|;..} // |
|00005290| 69 66 20 64 72 61 77 69 | 6e 67 4f 66 66 73 63 72 |if drawi|ngOffscr|
|000052a0| 65 65 6e 0d 0d 09 72 65 | 74 75 72 6e 20 66 61 6c |een...re|turn fal|
|000052b0| 73 65 3b 09 2f 2f 20 6b | 65 65 70 20 6c 6f 6f 70 |se;.// k|eep loop|
|000052c0| 69 6e 67 0d 7d 0d 0d 70 | 61 73 63 61 6c 20 76 6f |ing.}..p|ascal vo|
|000052d0| 69 64 20 5f 57 45 44 72 | 61 77 4c 69 6e 65 73 20 |id _WEDr|awLines |
|000052e0| 28 53 49 6e 74 33 32 20 | 66 69 72 73 74 4c 69 6e |(SInt32 |firstLin|
|000052f0| 65 2c 20 53 49 6e 74 33 | 32 20 6c 61 73 74 4c 69 |e, SInt3|2 lastLi|
|00005300| 6e 65 2c 20 42 6f 6f 6c | 65 61 6e 20 64 6f 45 72 |ne, Bool|ean doEr|
|00005310| 61 73 65 2c 20 57 45 48 | 61 6e 64 6c 65 20 68 57 |ase, WEH|andle hW|
|00005320| 45 29 0d 7b 0d 09 2f 2f | 20 64 72 61 77 20 74 68 |E).{..//| draw th|
|00005330| 65 20 73 70 65 63 69 66 | 69 65 64 20 72 61 6e 67 |e specif|ied rang|
|00005340| 65 20 6f 66 20 6c 69 6e | 65 73 0d 09 2f 2f 20 77 |e of lin|es..// w|
|00005350| 65 20 63 61 6e 20 73 61 | 66 65 6c 79 20 61 73 73 |e can sa|fely ass|
|00005360| 75 6d 65 20 74 68 61 74 | 20 74 68 65 20 57 45 20 |ume that| the WE |
|00005370| 72 65 63 6f 72 64 20 69 | 73 20 61 6c 72 65 61 64 |record i|s alread|
|00005380| 79 20 6c 6f 63 6b 65 64 | 0d 09 2f 2f 20 61 6e 64 |y locked|..// and|
|00005390| 20 74 68 65 20 70 6f 72 | 74 20 69 73 20 61 6c 72 | the por|t is alr|
|000053a0| 65 61 64 79 20 73 65 74 | 20 74 68 65 20 70 57 45 |eady set| the pWE|
|000053b0| 2d 3e 70 6f 72 74 0d 0d | 09 57 45 50 74 72 20 70 |->port..|.WEPtr p|
|000053c0| 57 45 20 3d 20 2a 68 57 | 45 3b 09 09 09 2f 2f 20 |WE = *hW|E;...// |
|000053d0| 61 73 73 75 6d 65 20 57 | 45 20 72 65 63 6f 72 64 |assume W|E record|
|000053e0| 20 69 73 20 6c 6f 63 6b | 65 64 0d 09 73 74 72 75 | is lock|ed..stru|
|000053f0| 63 74 20 53 4c 44 72 61 | 77 44 61 74 61 20 63 64 |ct SLDra|wData cd|
|00005400| 3b 09 09 2f 2f 20 62 6c | 6f 63 6b 20 6f 66 20 64 |;..// bl|ock of d|
|00005410| 61 74 61 20 77 65 27 6c | 6c 20 70 61 73 73 20 74 |ata we'l|l pass t|
|00005420| 6f 20 53 4c 44 72 61 77 | 0d 0d 09 42 4c 4f 43 4b |o SLDraw|...BLOCK|
|00005430| 5f 43 4c 52 28 63 64 29 | 3b 0d 09 63 64 2e 64 6f |_CLR(cd)|;..cd.do|
|00005440| 45 72 61 73 65 20 3d 20 | 64 6f 45 72 61 73 65 3b |Erase = |doErase;|
|00005450| 0d 09 63 64 2e 75 73 69 | 6e 67 43 6f 6c 6f 72 20 |..cd.usi|ngColor |
|00005460| 3d 20 28 42 54 53 54 28 | 70 57 45 2d 3e 66 6c 61 |= (BTST(|pWE->fla|
|00005470| 67 73 2c 20 77 65 46 48 | 61 73 43 6f 6c 6f 72 51 |gs, weFH|asColorQ|
|00005480| 44 29 20 26 26 20 21 42 | 54 53 54 28 70 57 45 2d |D) && !B|TST(pWE-|
|00005490| 3e 66 65 61 74 75 72 65 | 73 2c 20 77 65 46 49 6e |>feature|s, weFIn|
|000054a0| 68 69 62 69 74 43 6f 6c | 6f 72 29 29 20 3f 20 74 |hibitCol|or)) ? t|
|000054b0| 72 75 65 20 3a 20 66 61 | 6c 73 65 3b 0d 0d 09 2f |rue : fa|lse;.../|
|000054c0| 2f 20 64 6f 20 6e 6f 74 | 68 69 6e 67 20 69 66 20 |/ do not|hing if |
|000054d0| 6f 75 72 20 67 72 61 70 | 68 69 63 73 20 70 6f 72 |our grap|hics por|
|000054e0| 74 20 69 73 20 6e 6f 74 | 20 76 69 73 69 62 6c 65 |t is not| visible|
|000054f0| 0d 0d 23 69 66 20 41 43 | 43 45 53 53 4f 52 5f 43 |..#if AC|CESSOR_C|
|00005500| 41 4c 4c 53 5f 41 52 45 | 5f 46 55 4e 43 54 49 4f |ALLS_ARE|_FUNCTIO|
|00005510| 4e 53 0d 09 7b 0d 09 09 | 42 6f 6f 6c 65 61 6e 20 |NS..{...|Boolean |
|00005520| 65 6d 70 74 79 3b 0d 09 | 09 52 67 6e 48 61 6e 64 |empty;..|.RgnHand|
|00005530| 6c 65 20 76 69 73 52 67 | 6e 20 3d 20 4e 65 77 52 |le visRg|n = NewR|
|00005540| 67 6e 28 29 3b 0d 09 09 | 47 65 74 50 6f 72 74 56 |gn();...|GetPortV|
|00005550| 69 73 69 62 6c 65 52 65 | 67 69 6f 6e 28 70 57 45 |isibleRe|gion(pWE|
|00005560| 2d 3e 70 6f 72 74 2c 20 | 76 69 73 52 67 6e 29 3b |->port, |visRgn);|
|00005570| 0d 09 09 65 6d 70 74 79 | 20 3d 20 45 6d 70 74 79 |...empty| = Empty|
|00005580| 52 67 6e 28 76 69 73 52 | 67 6e 29 3b 0d 09 09 44 |Rgn(visR|gn);...D|
|00005590| 69 73 70 6f 73 65 52 67 | 6e 28 76 69 73 52 67 6e |isposeRg|n(visRgn|
|000055a0| 29 3b 0d 09 09 69 66 20 | 28 65 6d 70 74 79 29 0d |);...if |(empty).|
|000055b0| 09 09 09 72 65 74 75 72 | 6e 3b 0d 09 7d 0d 23 65 |...retur|n;..}.#e|
|000055c0| 6c 73 65 0d 09 69 66 20 | 28 45 6d 70 74 79 52 67 |lse..if |(EmptyRg|
|000055d0| 6e 28 70 57 45 2d 3e 70 | 6f 72 74 2d 3e 76 69 73 |n(pWE->p|ort->vis|
|000055e0| 52 67 6e 29 29 0d 09 09 | 72 65 74 75 72 6e 3b 0d |Rgn))...|return;.|
|000055f0| 23 65 6e 64 69 66 0d 0d | 09 2f 2f 20 73 61 76 65 |#endif..|.// save|
|00005600| 20 67 72 61 70 68 69 63 | 73 20 77 6f 72 6c 64 0d | graphic|s world.|
|00005610| 09 47 65 74 47 57 6f 72 | 6c 64 28 28 47 57 6f 72 |.GetGWor|ld((GWor|
|00005620| 6c 64 50 74 72 20 2a 29 | 20 26 63 64 2e 73 63 72 |ldPtr *)| &cd.scr|
|00005630| 65 65 6e 50 6f 72 74 2c | 20 26 63 64 2e 73 63 72 |eenPort,| &cd.scr|
|00005640| 65 65 6e 44 65 76 69 63 | 65 29 3b 0d 0d 09 2f 2f |eenDevic|e);...//|
|00005650| 20 49 66 20 64 6f 45 72 | 61 73 65 20 69 73 20 74 | If doEr|ase is t|
|00005660| 72 75 65 2c 20 77 65 27 | 72 65 20 64 72 61 77 69 |rue, we'|re drawi|
|00005670| 6e 67 20 6f 76 65 72 20 | 6f 6c 64 20 74 65 78 74 |ng over |old text|
|00005680| 2c 20 73 6f 20 77 65 20 | 6d 75 73 74 20 65 72 61 |, so we |must era|
|00005690| 73 65 20 65 61 63 68 20 | 6c 69 6e 65 0d 09 2f 2f |se each |line..//|
|000056a0| 20 62 65 66 6f 72 65 20 | 72 65 64 72 61 77 69 6e | before |redrawin|
|000056b0| 67 20 69 74 2e 20 20 42 | 75 74 20 69 66 20 74 68 |g it. B|ut if th|
|000056c0| 65 20 77 65 46 44 72 61 | 77 4f 66 66 73 63 72 65 |e weFDra|wOffscre|
|000056d0| 65 6e 20 66 65 61 74 75 | 72 65 20 69 73 20 65 6e |en featu|re is en|
|000056e0| 61 62 6c 65 64 2c 20 77 | 65 20 64 72 61 77 0d 09 |abled, w|e draw..|
|000056f0| 2f 2f 20 74 68 65 20 65 | 6e 74 69 72 65 20 6c 69 |// the e|ntire li|
|00005700| 6e 65 20 6f 66 66 73 63 | 72 65 65 6e 20 61 6e 64 |ne offsc|reen and|
|00005710| 20 20 77 65 20 63 6f 70 | 79 20 74 68 65 20 69 6d | we cop|y the im|
|00005720| 61 67 65 20 72 69 67 68 | 74 20 6f 76 65 72 20 74 |age righ|t over t|
|00005730| 68 65 20 6f 6c 64 20 6c | 69 6e 65 2c 0d 09 2f 2f |he old l|ine,..//|
|00005740| 20 77 69 74 68 6f 75 74 | 20 65 72 61 73 69 6e 67 | without| erasing|
|00005750| 20 69 74 2c 20 74 68 75 | 73 20 61 63 68 69 65 76 | it, thu|s achiev|
|00005760| 69 6e 67 20 61 20 76 65 | 72 79 20 73 6d 6f 6f 74 |ing a ve|ry smoot|
|00005770| 68 20 64 72 61 77 69 6e | 67 20 65 66 66 65 63 74 |h drawin|g effect|
|00005780| 2e 0d 0d 09 69 66 20 28 | 28 64 6f 45 72 61 73 65 |....if (|(doErase|
|00005790| 29 20 26 26 20 42 54 53 | 54 28 70 57 45 2d 3e 66 |) && BTS|T(pWE->f|
|000057a0| 65 61 74 75 72 65 73 2c | 20 77 65 46 44 72 61 77 |eatures,| weFDraw|
|000057b0| 4f 66 66 73 63 72 65 65 | 6e 29 29 0d 09 7b 0d 09 |Offscree|n))..{..|
|000057c0| 09 2f 2f 20 68 61 73 20 | 61 6e 20 6f 66 66 73 63 |.// has |an offsc|
|000057d0| 72 65 65 6e 20 77 6f 72 | 6c 64 20 61 6c 72 65 61 |reen wor|ld alrea|
|000057e0| 64 79 20 62 65 65 6e 20 | 61 6c 6c 6f 63 61 74 65 |dy been |allocate|
|000057f0| 64 3f 0d 09 09 69 66 20 | 28 70 57 45 2d 3e 6f 66 |d?...if |(pWE->of|
|00005800| 66 73 63 72 65 65 6e 50 | 6f 72 74 20 3d 3d 20 6e |fscreenP|ort == n|
|00005810| 69 6c 29 0d 09 09 7b 0d | 09 09 09 2f 2f 20 6e 6f |il)...{.|...// no|
|00005820| 70 65 2c 20 20 63 72 65 | 61 74 65 20 6f 6e 65 3b |pe, cre|ate one;|
|00005830| 20 69 74 73 20 62 6f 75 | 6e 64 73 20 61 72 65 20 | its bou|nds are |
|00005840| 73 65 74 20 69 6e 69 74 | 69 61 6c 6c 79 20 74 6f |set init|ially to|
|00005850| 20 61 6e 20 61 72 62 69 | 74 72 61 72 79 20 72 65 | an arbi|trary re|
|00005860| 63 74 61 6e 67 6c 65 0d | 09 09 09 53 65 74 52 65 |ctangle.|...SetRe|
|00005870| 63 74 28 26 63 64 2e 62 | 6f 75 6e 64 73 2c 20 30 |ct(&cd.b|ounds, 0|
|00005880| 2c 20 30 2c 20 31 2c 20 | 31 29 3b 0d 0d 09 09 09 |, 0, 1, |1);.....|
|00005890| 2f 2f 20 69 66 20 4e 65 | 77 47 57 6f 72 6c 64 20 |// if Ne|wGWorld |
|000058a0| 66 61 69 6c 73 2c 20 69 | 74 20 77 69 6c 6c 20 73 |fails, i|t will s|
|000058b0| 65 74 20 70 57 45 2d 3e | 6f 66 66 73 63 72 65 65 |et pWE->|offscree|
|000058c0| 6e 50 6f 72 74 20 74 6f | 20 6e 69 6c 0d 09 09 09 |nPort to| nil....|
|000058d0| 4e 65 77 47 57 6f 72 6c | 64 28 28 47 57 6f 72 6c |NewGWorl|d((GWorl|
|000058e0| 64 50 74 72 20 2a 29 20 | 26 70 57 45 2d 3e 6f 66 |dPtr *) |&pWE->of|
|000058f0| 66 73 63 72 65 65 6e 50 | 6f 72 74 2c 20 30 2c 20 |fscreenP|ort, 0, |
|00005900| 26 63 64 2e 62 6f 75 6e | 64 73 2c 20 6e 69 6c 2c |&cd.boun|ds, nil,|
|00005910| 20 6e 69 6c 2c 20 70 69 | 78 50 75 72 67 65 20 2b | nil, pi|xPurge +|
|00005920| 20 6e 6f 4e 65 77 44 65 | 76 69 63 65 20 2b 20 75 | noNewDe|vice + u|
|00005930| 73 65 54 65 6d 70 4d 65 | 6d 29 3b 0d 09 09 7d 0d |seTempMe|m);...}.|
|00005940| 09 09 63 64 2e 75 73 69 | 6e 67 4f 66 66 73 63 72 |..cd.usi|ngOffscr|
|00005950| 65 65 6e 20 3d 20 28 70 | 57 45 2d 3e 6f 66 66 73 |een = (p|WE->offs|
|00005960| 63 72 65 65 6e 50 6f 72 | 74 20 21 3d 20 6e 69 6c |creenPor|t != nil|
|00005970| 29 3b 0d 09 7d 0d 0d 09 | 5f 57 45 53 65 67 6d 65 |);..}...|_WESegme|
|00005980| 6e 74 4c 6f 6f 70 28 66 | 69 72 73 74 4c 69 6e 65 |ntLoop(f|irstLine|
|00005990| 2c 20 6c 61 73 74 4c 69 | 6e 65 2c 20 53 4c 44 72 |, lastLi|ne, SLDr|
|000059a0| 61 77 2c 20 26 63 64 2c | 20 68 57 45 29 3b 0d 0d |aw, &cd,| hWE);..|
|000059b0| 09 2f 2f 20 72 65 73 74 | 6f 72 65 20 67 72 61 70 |.// rest|ore grap|
|000059c0| 68 69 63 73 20 77 6f 72 | 6c 64 0d 09 53 65 74 47 |hics wor|ld..SetG|
|000059d0| 57 6f 72 6c 64 28 28 47 | 57 6f 72 6c 64 50 74 72 |World((G|WorldPtr|
|000059e0| 29 20 63 64 2e 73 63 72 | 65 65 6e 50 6f 72 74 2c |) cd.scr|eenPort,|
|000059f0| 20 63 64 2e 73 63 72 65 | 65 6e 44 65 76 69 63 65 | cd.scre|enDevice|
|00005a00| 29 3b 0d 7d 0d 0d 70 61 | 73 63 61 6c 20 53 49 6e |);.}..pa|scal SIn|
|00005a10| 74 31 36 20 5f 57 45 43 | 61 6c 63 50 65 6e 49 6e |t16 _WEC|alcPenIn|
|00005a20| 64 65 6e 74 28 63 6f 6e | 73 74 20 57 45 4c 69 6e |dent(con|st WELin|
|00005a30| 65 52 65 63 20 2a 70 4c | 69 6e 65 2c 20 57 45 41 |eRec *pL|ine, WEA|
|00005a40| 6c 69 67 6e 6d 65 6e 74 | 20 61 6c 69 67 6e 6d 65 |lignment| alignme|
|00005a50| 6e 74 2c 20 57 45 44 69 | 72 65 63 74 69 6f 6e 20 |nt, WEDi|rection |
|00005a60| 64 69 72 65 63 74 69 6f | 6e 29 0d 7b 0d 09 53 49 |directio|n).{..SI|
|00005a70| 6e 74 31 36 20 72 65 74 | 76 61 6c 20 3d 20 30 3b |nt16 ret|val = 0;|
|00005a80| 0d 0d 09 73 77 69 74 63 | 68 20 28 61 6c 69 67 6e |...switc|h (align|
|00005a90| 6d 65 6e 74 29 0d 09 7b | 0d 09 09 63 61 73 65 20 |ment)..{|...case |
|00005aa0| 77 65 46 6c 75 73 68 4c | 65 66 74 3a 0d 09 09 7b |weFlushL|eft:...{|
|00005ab0| 0d 09 09 09 62 72 65 61 | 6b 3b 0d 09 09 7d 0d 0d |....brea|k;...}..|
|00005ac0| 09 09 63 61 73 65 20 77 | 65 46 6c 75 73 68 52 69 |..case w|eFlushRi|
|00005ad0| 67 68 74 3a 0d 09 09 7b | 0d 09 09 09 72 65 74 76 |ght:...{|....retv|
|00005ae0| 61 6c 20 3d 20 70 4c 69 | 6e 65 2d 3e 6c 69 6e 65 |al = pLi|ne->line|
|00005af0| 53 6c 6f 70 3b 0d 09 09 | 09 62 72 65 61 6b 3b 0d |Slop;...|.break;.|
|00005b00| 09 09 7d 0d 0d 09 09 63 | 61 73 65 20 77 65 43 65 |..}....c|ase weCe|
|00005b10| 6e 74 65 72 3a 0d 09 09 | 7b 0d 09 09 09 72 65 74 |nter:...|{....ret|
|00005b20| 76 61 6c 20 3d 20 70 4c | 69 6e 65 2d 3e 6c 69 6e |val = pL|ine->lin|
|00005b30| 65 53 6c 6f 70 20 2f 20 | 32 3b 0d 09 09 09 62 72 |eSlop / |2;....br|
|00005b40| 65 61 6b 3b 0d 09 09 7d | 0d 0d 09 09 63 61 73 65 |eak;...}|....case|
|00005b50| 20 77 65 4a 75 73 74 69 | 66 79 3a 0d 09 09 7b 0d | weJusti|fy:...{.|
|00005b60| 09 09 09 69 66 20 28 70 | 4c 69 6e 65 2d 3e 6c 69 |...if (p|Line->li|
|00005b70| 6e 65 4a 75 73 74 41 6d | 6f 75 6e 74 20 3e 20 30 |neJustAm|ount > 0|
|00005b80| 29 0d 09 09 09 7b 0d 09 | 09 09 09 62 72 65 61 6b |)....{..|...break|
|00005b90| 3b 0d 09 09 09 7d 0d 09 | 09 09 2f 2f 20 64 65 6c |;....}..|..// del|
|00005ba0| 69 62 65 72 61 74 65 20 | 66 61 6c 6c 20 74 68 72 |iberate |fall thr|
|00005bb0| 6f 75 67 68 20 74 6f 20 | 64 65 66 61 75 6c 74 20 |ough to |default |
|00005bc0| 63 61 73 65 20 66 6f 72 | 0d 09 09 09 2f 2f 20 6c |case for|....// l|
|00005bd0| 61 73 74 20 6c 69 6e 65 | 20 6f 66 20 6a 75 73 74 |ast line| of just|
|00005be0| 69 66 69 65 64 20 70 61 | 72 61 67 72 61 70 68 0d |ified pa|ragraph.|
|00005bf0| 09 09 7d 0d 0d 09 09 64 | 65 66 61 75 6c 74 3a 0d |..}....d|efault:.|
|00005c00| 09 09 7b 0d 09 09 09 69 | 66 20 28 49 73 52 69 67 |..{....i|f (IsRig|
|00005c10| 68 74 54 6f 4c 65 66 74 | 28 64 69 72 65 63 74 69 |htToLeft|(directi|
|00005c20| 6f 6e 29 29 0d 09 09 09 | 7b 0d 09 09 09 09 72 65 |on))....|{.....re|
|00005c30| 74 76 61 6c 20 3d 20 70 | 4c 69 6e 65 2d 3e 6c 69 |tval = p|Line->li|
|00005c40| 6e 65 53 6c 6f 70 3b 0d | 09 09 09 7d 0d 09 09 09 |neSlop;.|...}....|
|00005c50| 62 72 65 61 6b 3b 0d 09 | 09 7d 0d 09 7d 0d 0d 09 |break;..|.}..}...|
|00005c60| 72 65 74 75 72 6e 20 72 | 65 74 76 61 6c 3b 0d 7d |return r|etval;.}|
|00005c70| 0d 0d 70 61 73 63 61 6c | 20 76 6f 69 64 20 5f 57 |..pascal| void _W|
|00005c80| 45 53 61 76 65 51 44 45 | 6e 76 69 72 6f 6e 6d 65 |ESaveQDE|nvironme|
|00005c90| 6e 74 28 47 72 61 66 50 | 74 72 20 70 6f 72 74 2c |nt(GrafP|tr port,|
|00005ca0| 20 42 6f 6f 6c 65 61 6e | 20 73 61 76 65 43 6f 6c | Boolean| saveCol|
|00005cb0| 6f 72 2c 20 51 44 45 6e | 76 69 72 6f 6e 6d 65 6e |or, QDEn|vironmen|
|00005cc0| 74 20 2a 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 29 0d |t *envir|onment).|
|00005cd0| 7b 0d 09 47 65 74 50 6f | 72 74 28 26 65 6e 76 69 |{..GetPo|rt(&envi|
|00005ce0| 72 6f 6e 6d 65 6e 74 2d | 3e 65 6e 76 50 6f 72 74 |ronment-|>envPort|
|00005cf0| 29 3b 0d 09 53 65 74 50 | 6f 72 74 28 70 6f 72 74 |);..SetP|ort(port|
|00005d00| 29 3b 0d 09 47 65 74 50 | 65 6e 53 74 61 74 65 28 |);..GetP|enState(|
|00005d10| 26 65 6e 76 69 72 6f 6e | 6d 65 6e 74 2d 3e 65 6e |&environ|ment->en|
|00005d20| 76 50 65 6e 29 3b 0d 09 | 50 65 6e 4e 6f 72 6d 61 |vPen);..|PenNorma|
|00005d30| 6c 28 29 3b 0d 09 65 6e | 76 69 72 6f 6e 6d 65 6e |l();..en|vironmen|
|00005d40| 74 2d 3e 65 6e 76 53 74 | 79 6c 65 2e 74 73 46 6f |t->envSt|yle.tsFo|
|00005d50| 6e 74 20 3d 20 47 65 74 | 54 65 78 74 46 6f 6e 74 |nt = Get|TextFont|
|00005d60| 28 70 6f 72 74 29 3b 0d | 09 65 6e 76 69 72 6f 6e |(port);.|.environ|
|00005d70| 6d 65 6e 74 2d 3e 65 6e | 76 53 74 79 6c 65 2e 74 |ment->en|vStyle.t|
|00005d80| 73 46 61 63 65 20 3d 20 | 47 65 74 54 65 78 74 46 |sFace = |GetTextF|
|00005d90| 61 63 65 28 70 6f 72 74 | 29 3b 0d 09 65 6e 76 69 |ace(port|);..envi|
|00005da0| 72 6f 6e 6d 65 6e 74 2d | 3e 65 6e 76 53 74 79 6c |ronment-|>envStyl|
|00005db0| 65 2e 74 73 46 6c 61 67 | 73 20 3d 20 73 61 76 65 |e.tsFlag|s = save|
|00005dc0| 43 6f 6c 6f 72 3b 09 09 | 2f 2f 20 72 65 6d 65 6d |Color;..|// remem|
|00005dd0| 62 65 72 20 69 66 20 63 | 6f 6c 6f 72 20 77 61 73 |ber if c|olor was|
|00005de0| 20 73 61 76 65 64 0d 09 | 65 6e 76 69 72 6f 6e 6d | saved..|environm|
|00005df0| 65 6e 74 2d 3e 65 6e 76 | 53 74 79 6c 65 2e 74 73 |ent->env|Style.ts|
|00005e00| 53 69 7a 65 20 3d 20 47 | 65 74 54 65 78 74 53 69 |Size = G|etTextSi|
|00005e10| 7a 65 28 70 6f 72 74 29 | 3b 0d 09 69 66 20 28 73 |ze(port)|;..if (s|
|00005e20| 61 76 65 43 6f 6c 6f 72 | 29 0d 09 7b 0d 09 09 47 |aveColor|)..{...G|
|00005e30| 65 74 46 6f 72 65 43 6f | 6c 6f 72 28 26 65 6e 76 |etForeCo|lor(&env|
|00005e40| 69 72 6f 6e 6d 65 6e 74 | 2d 3e 65 6e 76 53 74 79 |ironment|->envSty|
|00005e50| 6c 65 2e 74 73 43 6f 6c | 6f 72 29 3b 0d 09 7d 0d |le.tsCol|or);..}.|
|00005e60| 09 65 6e 76 69 72 6f 6e | 6d 65 6e 74 2d 3e 65 6e |.environ|ment->en|
|00005e70| 76 4d 6f 64 65 20 3d 20 | 47 65 74 54 65 78 74 4d |vMode = |GetTextM|
|00005e80| 6f 64 65 28 70 6f 72 74 | 29 3b 0d 09 54 65 78 74 |ode(port|);..Text|
|00005e90| 4d 6f 64 65 28 73 72 63 | 4f 72 29 3b 0d 7d 0d 0d |Mode(src|Or);.}..|
|00005ea0| 70 61 73 63 61 6c 20 76 | 6f 69 64 20 5f 57 45 52 |pascal v|oid _WER|
|00005eb0| 65 73 74 6f 72 65 51 44 | 45 6e 76 69 72 6f 6e 6d |estoreQD|Environm|
|00005ec0| 65 6e 74 28 63 6f 6e 73 | 74 20 51 44 45 6e 76 69 |ent(cons|t QDEnvi|
|00005ed0| 72 6f 6e 6d 65 6e 74 20 | 2a 65 6e 76 69 72 6f 6e |ronment |*environ|
|00005ee0| 6d 65 6e 74 29 0d 7b 0d | 09 53 65 74 50 65 6e 53 |ment).{.|.SetPenS|
|00005ef0| 74 61 74 65 28 26 65 6e | 76 69 72 6f 6e 6d 65 6e |tate(&en|vironmen|
|00005f00| 74 2d 3e 65 6e 76 50 65 | 6e 29 3b 0d 09 54 65 78 |t->envPe|n);..Tex|
|00005f10| 74 46 6f 6e 74 28 65 6e | 76 69 72 6f 6e 6d 65 6e |tFont(en|vironmen|
|00005f20| 74 2d 3e 65 6e 76 53 74 | 79 6c 65 2e 74 73 46 6f |t->envSt|yle.tsFo|
|00005f30| 6e 74 29 3b 0d 09 54 65 | 78 74 46 61 63 65 28 65 |nt);..Te|xtFace(e|
|00005f40| 6e 76 69 72 6f 6e 6d 65 | 6e 74 2d 3e 65 6e 76 53 |nvironme|nt->envS|
|00005f50| 74 79 6c 65 2e 74 73 46 | 61 63 65 29 3b 0d 09 54 |tyle.tsF|ace);..T|
|00005f60| 65 78 74 53 69 7a 65 28 | 65 6e 76 69 72 6f 6e 6d |extSize(|environm|
|00005f70| 65 6e 74 2d 3e 65 6e 76 | 53 74 79 6c 65 2e 74 73 |ent->env|Style.ts|
|00005f80| 53 69 7a 65 29 3b 0d 09 | 54 65 78 74 4d 6f 64 65 |Size);..|TextMode|
|00005f90| 28 65 6e 76 69 72 6f 6e | 6d 65 6e 74 2d 3e 65 6e |(environ|ment->en|
|00005fa0| 76 4d 6f 64 65 29 3b 0d | 09 69 66 20 28 65 6e 76 |vMode);.|.if (env|
|00005fb0| 69 72 6f 6e 6d 65 6e 74 | 2d 3e 65 6e 76 53 74 79 |ironment|->envSty|
|00005fc0| 6c 65 2e 74 73 46 6c 61 | 67 73 29 0d 09 7b 0d 09 |le.tsFla|gs)..{..|
|00005fd0| 09 52 47 42 46 6f 72 65 | 43 6f 6c 6f 72 28 26 65 |.RGBFore|Color(&e|
|00005fe0| 6e 76 69 72 6f 6e 6d 65 | 6e 74 2d 3e 65 6e 76 53 |nvironme|nt->envS|
|00005ff0| 74 79 6c 65 2e 74 73 43 | 6f 6c 6f 72 29 3b 0d 09 |tyle.tsC|olor);..|
|00006000| 7d 0d 09 53 65 74 50 6f | 72 74 28 65 6e 76 69 72 |}..SetPo|rt(envir|
|00006010| 6f 6e 6d 65 6e 74 2d 3e | 65 6e 76 50 6f 72 74 29 |onment->|envPort)|
|00006020| 3b 0d 7d 0d 0d 70 61 73 | 63 61 6c 20 76 6f 69 64 |;.}..pas|cal void|
|00006030| 20 5f 57 45 46 69 6c 6c | 46 6f 6e 74 49 6e 66 6f | _WEFill|FontInfo|
|00006040| 20 28 47 72 61 66 50 74 | 72 20 70 6f 72 74 2c 20 | (GrafPt|r port, |
|00006050| 57 45 52 75 6e 41 74 74 | 72 69 62 75 74 65 73 20 |WERunAtt|ributes |
|00006060| 2a 74 61 72 67 65 74 53 | 74 79 6c 65 29 0d 7b 0d |*targetS|tyle).{.|
|00006070| 09 2f 2f 20 67 69 76 65 | 6e 20 61 20 57 45 52 75 |.// give|n a WERu|
|00006080| 6e 41 74 74 72 69 62 75 | 74 65 73 20 72 65 63 6f |nAttribu|tes reco|
|00006090| 72 64 2c 20 66 69 6c 6c | 20 69 6e 20 74 68 65 20 |rd, fill| in the |
|000060a0| 72 75 6e 48 65 69 67 68 | 74 2c 20 72 75 6e 41 73 |runHeigh|t, runAs|
|000060b0| 63 65 6e 74 20 66 69 65 | 6c 64 73 20 65 74 63 2e |cent fie|lds etc.|
|000060c0| 0d 09 46 6f 6e 74 49 6e | 66 6f 20 66 49 6e 66 6f |..FontIn|fo fInfo|
|000060d0| 3b 0d 09 51 44 45 6e 76 | 69 72 6f 6e 6d 65 6e 74 |;..QDEnv|ironment|
|000060e0| 20 73 61 76 65 45 6e 76 | 69 72 6f 6e 6d 65 6e 74 | saveEnv|ironment|
|000060f0| 3b 0d 0d 09 5f 57 45 53 | 61 76 65 51 44 45 6e 76 |;..._WES|aveQDEnv|
|00006100| 69 72 6f 6e 6d 65 6e 74 | 28 70 6f 72 74 2c 20 66 |ironment|(port, f|
|00006110| 61 6c 73 65 2c 20 26 73 | 61 76 65 45 6e 76 69 72 |alse, &s|aveEnvir|
|00006120| 6f 6e 6d 65 6e 74 29 3b | 0d 0d 09 2f 2f 20 77 65 |onment);|...// we|
|00006130| 20 64 6f 6e 27 74 20 77 | 61 6e 74 20 61 20 7a 65 | don't w|ant a ze|
|00006140| 72 6f 20 66 6f 6e 74 20 | 73 69 7a 65 3b 20 61 6c |ro font |size; al|
|00006150| 74 68 6f 75 67 68 20 51 | 75 69 63 6b 64 72 61 77 |though Q|uickdraw|
|00006160| 20 61 63 63 65 70 74 73 | 20 7a 65 72 6f 20 74 6f | accepts| zero to|
|00006170| 20 6d 65 61 6e 0d 09 2f | 2f 20 74 68 65 20 64 65 | mean../|/ the de|
|00006180| 66 61 75 6c 74 20 66 6f | 6e 74 20 73 69 7a 65 2c |fault fo|nt size,|
|00006190| 20 69 74 20 63 61 6e 20 | 63 61 75 73 65 20 74 72 | it can |cause tr|
|000061a0| 6f 75 62 6c 65 20 74 6f | 20 75 73 20 77 68 65 6e |ouble to| us when|
|000061b0| 20 77 65 20 64 6f 20 63 | 61 6c 63 75 6c 61 74 69 | we do c|alculati|
|000061c0| 6f 6e 73 0d 09 69 66 20 | 28 74 61 72 67 65 74 53 |ons..if |(targetS|
|000061d0| 74 79 6c 65 2d 3e 72 75 | 6e 53 74 79 6c 65 2e 74 |tyle->ru|nStyle.t|
|000061e0| 73 53 69 7a 65 20 3d 3d | 20 30 29 0d 09 7b 0d 09 |sSize ==| 0)..{..|
|000061f0| 09 74 61 72 67 65 74 53 | 74 79 6c 65 2d 3e 72 75 |.targetS|tyle->ru|
|00006200| 6e 53 74 79 6c 65 2e 74 | 73 53 69 7a 65 20 3d 20 |nStyle.t|sSize = |
|00006210| 31 32 3b 0d 09 7d 0d 0d | 09 2f 2f 20 73 65 74 20 |12;..}..|.// set |
|00006220| 74 68 65 20 74 65 78 74 | 20 61 74 74 72 69 62 75 |the text| attribu|
|00006230| 74 65 73 0d 09 54 65 78 | 74 46 6f 6e 74 28 74 61 |tes..Tex|tFont(ta|
|00006240| 72 67 65 74 53 74 79 6c | 65 2d 3e 72 75 6e 53 74 |rgetStyl|e->runSt|
|00006250| 79 6c 65 2e 74 73 46 6f | 6e 74 29 3b 0d 09 54 65 |yle.tsFo|nt);..Te|
|00006260| 78 74 53 69 7a 65 28 74 | 61 72 67 65 74 53 74 79 |xtSize(t|argetSty|
|00006270| 6c 65 2d 3e 72 75 6e 53 | 74 79 6c 65 2e 74 73 53 |le->runS|tyle.tsS|
|00006280| 69 7a 65 29 3b 0d 09 54 | 65 78 74 46 61 63 65 28 |ize);..T|extFace(|
|00006290| 74 61 72 67 65 74 53 74 | 79 6c 65 2d 3e 72 75 6e |targetSt|yle->run|
|000062a0| 53 74 79 6c 65 2e 74 73 | 46 61 63 65 29 3b 0d 09 |Style.ts|Face);..|
|000062b0| 47 65 74 46 6f 6e 74 49 | 6e 66 6f 28 26 66 49 6e |GetFontI|nfo(&fIn|
|000062c0| 66 6f 29 3b 0d 09 74 61 | 72 67 65 74 53 74 79 6c |fo);..ta|rgetStyl|
|000062d0| 65 2d 3e 72 75 6e 48 65 | 69 67 68 74 20 3d 20 66 |e->runHe|ight = f|
|000062e0| 49 6e 66 6f 2e 61 73 63 | 65 6e 74 20 2b 20 66 49 |Info.asc|ent + fI|
|000062f0| 6e 66 6f 2e 64 65 73 63 | 65 6e 74 20 2b 20 66 49 |nfo.desc|ent + fI|
|00006300| 6e 66 6f 2e 6c 65 61 64 | 69 6e 67 3b 0d 09 74 61 |nfo.lead|ing;..ta|
|00006310| 72 67 65 74 53 74 79 6c | 65 2d 3e 72 75 6e 41 73 |rgetStyl|e->runAs|
|00006320| 63 65 6e 74 20 3d 20 66 | 49 6e 66 6f 2e 61 73 63 |cent = f|Info.asc|
|00006330| 65 6e 74 3b 0d 0d 09 5f | 57 45 52 65 73 74 6f 72 |ent;..._|WERestor|
|00006340| 65 51 44 45 6e 76 69 72 | 6f 6e 6d 65 6e 74 28 26 |eQDEnvir|onment(&|
|00006350| 73 61 76 65 45 6e 76 69 | 72 6f 6e 6d 65 6e 74 29 |saveEnvi|ronment)|
|00006360| 3b 0d 7d 0d 0d 70 61 73 | 63 61 6c 20 76 6f 69 64 |;.}..pas|cal void|
|00006370| 20 5f 57 45 43 6f 70 79 | 53 74 79 6c 65 28 63 6f | _WECopy|Style(co|
|00006380| 6e 73 74 20 57 45 54 65 | 78 74 53 74 79 6c 65 20 |nst WETe|xtStyle |
|00006390| 2a 73 6f 75 72 63 65 53 | 74 79 6c 65 2c 20 57 45 |*sourceS|tyle, WE|
|000063a0| 54 65 78 74 53 74 79 6c | 65 20 2a 74 61 72 67 65 |TextStyl|e *targe|
|000063b0| 74 53 74 79 6c 65 2c 0d | 09 09 09 09 53 74 79 6c |tStyle,.|....Styl|
|000063c0| 65 20 6f 66 66 53 74 79 | 6c 65 73 2c 20 57 45 53 |e offSty|les, WES|
|000063d0| 74 79 6c 65 4d 6f 64 65 | 20 6d 6f 64 65 29 0d 7b |tyleMode| mode).{|
|000063e0| 0d 09 2f 2f 20 43 6f 70 | 79 20 73 6f 6d 65 20 6f |..// Cop|y some o|
|000063f0| 72 20 61 6c 6c 20 6f 66 | 20 74 68 65 20 61 74 74 |r all of| the att|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.